
7 Nov
2007
7 Nov
'07
7:21 a.m.
On Wednesday 24 October 2007 20:20:15 David Benbennick wrote:
Wed Oct 24 18:10:16 PDT 2007 David Benbennick
* 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