diff options
author | Lukas Mai <l.mai@web.de> | 2008-03-21 18:19:11 +0100 |
---|---|---|
committer | Lukas Mai <l.mai@web.de> | 2008-03-21 18:19:11 +0100 |
commit | 2ada5880c8ad5a5bf312fe428f1d4e7e59eb2095 (patch) | |
tree | b17526815ff70a227c12f377a094b4c8baaf4aea /XMonad | |
parent | 3e736a64e874e5ee0eac1e72e8d019c6b04b121d (diff) | |
download | xmonad-2ada5880c8ad5a5bf312fe428f1d4e7e59eb2095.tar.gz xmonad-2ada5880c8ad5a5bf312fe428f1d4e7e59eb2095.tar.xz xmonad-2ada5880c8ad5a5bf312fe428f1d4e7e59eb2095.zip |
XMonad.Core: ignore SIGPIPE, let write calls throw
darcs-hash:20080321171911-462cf-b7c8fc03b362a6bf97036963e1646e650e223016.gz
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Main.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/XMonad/Main.hs b/XMonad/Main.hs index 667af81..e3aca18 100644 --- a/XMonad/Main.hs +++ b/XMonad/Main.hs @@ -24,6 +24,7 @@ import Control.Monad.State import Data.Maybe (fromMaybe) import System.Environment (getArgs) +import System.Posix.Signals import Graphics.X11.Xlib hiding (refreshKeyboardMapping) import Graphics.X11.Xlib.Extras @@ -41,6 +42,8 @@ import System.IO -- xmonad :: (LayoutClass l Window, Read (l Window)) => XConfig l -> IO () xmonad initxmc = do + -- ignore SIGPIPE + installHandler openEndedPipe Ignore Nothing -- First, wrap the layout in an existential, to keep things pretty: let xmc = initxmc { layoutHook = Layout $ layoutHook initxmc } dpy <- openDisplay "" |