
On Sun, Apr 11, 2010 at 01:36:46AM +0200, Tomá? Janou?ek wrote:
The below part from Core.hs is completely wrong, you can't just ignore SIGCHLD and hope for some deity cleaning up the mess. And, BTW the default action of SIGCHLD is SIG_IGN, so both calls of `installHandler sigCHLD ...' are equivalent (and thus bogus).
On a system conforming to POSIX.1-2001, you just can.
Indeed, someone else just told me that I was wrong...
The easy solution would be to call sigaction with the SA_NOCLDWAIT flag, but System.Posix.Signals lacks the interface to do this :-(.
Maybe we should just add that silly wait-loop sigchld handler.
Better wait. Somehting else must be wrong then, and it may as well be in GHCs libraries. I'll try to setup some test cases for this. Ciao, Kili