use 'spawn' rather than runProcess, to report errors asynchronously, avoiding zombies

This commit is contained in:
Don Stewart
2007-11-19 02:37:12 +00:00
parent 31ce83d04e
commit 81803ffe81

View File

@@ -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 ()