From ba6f59efaa7cf6e315daefe0cb9f49f1b7c88a38 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Fri, 16 Jan 2009 21:47:42 +0100 Subject: Remove doubleFork, handle SIGCHLD Ignore-this: f9b1a65b4f0622922f80ad2ab6c5a52f This is a rather big change. Rather than make spawned processes become children of init, we handle them in xmonad. As a side effect of this change, we never need to use waitForProcess in any contrib module -- in fact, doing so will raise an exception. The main benefit to handling SIGCHLD is that xmonad can now be started with 'exec', and will correctly clean up after inherited child processes. darcs-hash:20090116204742-25a6b-9594fc6cdfcd5552894b64b4b6137f8a7cf2021d --- Main.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'Main.hs') diff --git a/Main.hs b/Main.hs index 84eca32..29ae822 100644 --- a/Main.hs +++ b/Main.hs @@ -32,6 +32,7 @@ import qualified Properties -- for xmonad, and if it doesn't find one, just launches the default. main :: IO () main = do + installSignalHandlers -- important to ignore SIGCHLD to avoid zombies args <- getArgs let launch = catchIO buildLaunch >> xmonad defaultConfig case args of -- cgit v1.2.3