From 6d7c76d08052c73c90c495df3843a065918812f4 Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Mon, 19 Nov 2007 03:37:12 +0100 Subject: use 'spawn' rather than runProcess, to report errors asynchronously, avoiding zombies darcs-hash:20071119023712-cba2c-c034ed99f668ede81e7e1e247ff631ae9eda31f6.gz --- XMonad/Core.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'XMonad/Core.hs') diff --git a/XMonad/Core.hs b/XMonad/Core.hs index 84b1311..d55b2e2 100644 --- a/XMonad/Core.hs +++ b/XMonad/Core.hs @@ -325,9 +325,7 @@ recompile = do ["Error detected while loading xmonad configuration file: " ++ src] ++ lines ghcErr ++ ["","Please check the file for errors."] - waitForProcess =<< runProcess "xmessage" [msg] - Nothing Nothing Nothing Nothing Nothing - return () + spawn $ "xmessage '" ++ msg ++ "'" -- | Run a side effecting action with the current workspace. Like 'when' but whenJust :: Monad m => Maybe a -> (a -> m ()) -> m () -- cgit v1.2.3