diff options
author | Don Stewart <dons@galois.com> | 2007-11-19 03:37:12 +0100 |
---|---|---|
committer | Don Stewart <dons@galois.com> | 2007-11-19 03:37:12 +0100 |
commit | d90788a411ab2339502056c8f1ff2f4ddd4e6b64 (patch) | |
tree | 0cf73cee5de8e7626c15545ff70677b1c552c2e0 /XMonad | |
parent | b11f717a589d6a6349e882a46ceb9994a12af631 (diff) | |
download | metatile-d90788a411ab2339502056c8f1ff2f4ddd4e6b64.tar metatile-d90788a411ab2339502056c8f1ff2f4ddd4e6b64.zip |
use 'spawn' rather than runProcess, to report errors asynchronously, avoiding zombies
darcs-hash:20071119023712-cba2c-c034ed99f668ede81e7e1e247ff631ae9eda31f6
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Core.hs | 4 |
1 files changed, 1 insertions, 3 deletions
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 () |