[xmonad] Re: xmonad-0.9.1 leaves zombie processes around

Matthias Kilian kili at outback.escape.de
Sun Apr 11 11:36:05 EDT 2010


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


More information about the xmonad mailing list