[Xmonad] darcs patch: zombie_children

Spencer Janssen sjanssen at cse.unl.edu
Wed Nov 7 02:21:05 EST 2007


On Wednesday 24 October 2007 20:20:15 David Benbennick wrote:
> Wed Oct 24 18:10:16 PDT 2007  David Benbennick <dbenbenn at gmail.com>
>   * zombie_children
>
>   Second version.  This patch sets SIGCHLD to SIG_IGN, so that any child
>   processes that end will be immediately cleaned up.  It also waits on
>   all existing zombie child processes, in case they already exist.
>
>   I'm not too happy about waitAllChildren; it doesn't seem very Haskelley.
>   I was surprised that the following didn't work:
>
>     try $ forever_ $ getAnyProcessStatus False False >>= return . fromJust

Sadly, SIGCHLD doesn't seem to be a good solution here.  Certain parts of
xmonad collect child processes with waitForProcess, which throws an exception
if the process has already been collected.


Cheers,
Spencer Janssen



More information about the Xmonad mailing list