g_child_watch_add => g_spawn_* ?

  I have wrapped[1] g_child_watch_add_full in pygtk.  Then wrote a unit
test, and it seems this function is not very reliable when the child
process quits very quickly after creation.  Sometimes the callback
function is never called.  Then I added a sleep(1) to the child, and it
started working always.

  My question is, does it make any difference whether g_spawn_* is used
or not for g_child_watch_add to work?  Because the documentation doesn't
mention any relationship between g_child_watch_add and g_spawn_*.

  Thanks in advance.  Regards.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=150251
Gustavo J. A. M. Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>
The universe is always one step beyond logic

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]