[Bug 136867] Changed - child-test is still hanging



http://bugzilla.gnome.org/show_bug.cgi?id=136867





------- Additional Comments From otaylor redhat com  2004-03-22 15:04 -------
After some investigation, it looks like this is a very old
BSD / SysV compatiblity issue - SysV resets handlers installed
with signal() after they are called, BSD (and current Linux)
doesn't.

Could you, to test this theory, put:

   signal (SIGCHLD, g_child_watch_signal_handler);

as the very last line of 
g_child_watch_signal_handler() and see if that fixes the
problem?

I think the best long-term solution is probably to switch
to using sigaction() rather than signal() to install
the signal handler.



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