mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-18 13:23:46 -07:00
use 'spawn' rather than runProcess, to report errors asynchronously, avoiding zombies
This commit is contained in:
@@ -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 ()
|
||||
|
Reference in New Issue
Block a user