On Fri, 28 Dec 2012 01:39:13 -0200 Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> said:

> On Fri, Dec 28, 2012 at 1:35 AM, Gustavo Sverzut Barbieri <
> barbi...@profusion.mobi> wrote:
> 
> > On Fri, Dec 28, 2012 at 12:28 AM, Enlightenment SVN <
> > no-re...@enlightenment.org> wrote:
> >
> >> Log:
> >> work around edbus issues by forcing the mainloop to run at least one
> >>   cycle with some dummy things... in ipc launch mode.
> >>
> >
> > what's up with edbus/efreet? Do you have a scenario of what is happening?
> > It shouldn't do much, but since parts of it is done by libdbus (atm) it may
> > happen and we can find a better work around?
> >
> 
> 
> Ah, and the recommended approach when using dbus to do IPC is to follow all
> the async protocol rules. The best way is:
> 
> 1 - request to be the NameOwner (no queue option)
> 2 - if granted, be the server -- normal run;
> 3 - if denied, send command to the server and wait reply
> 4 - on reply, you exit and may print error if server replies with one.
> 
> I believe Eve does that, check
> http://trac.enlightenment.org/e/browser/trunk/eve/src/bin/main.c

if the mainloop doesn't get a chance to run at all after init of
efreet/edbus... segv's happen. there's also a memory leak too:

in terminology... main.c:

        if (ipc_instance_add(&inst))
          {
             ecore_timer_add(0.1, _dummy_exit, NULL);
             elm_run();
             goto end;
          }

comment out the timer_add() and em_run().

now in terminology behavior options.. enable multi instance. now run one
terminlogy .. this one becoms the daemon. now run a second one (new window pops
up, but 2nd process exits instantly)... but this segv's. (the 2nd one that al
it does is message the first saying 'hey start a window with this window
thanks').

as for leak... just tun a terminology (non-multi-instance mode will do) and
then exit... ther's the edbus service name ptr leaked - valgrind happily spits
this out. :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to