summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniel Schüssler <933504+DanielSchuessler@users.noreply.github.com>2018-10-06 21:55:16 +0200
committerDaniel Schüssler <933504+DanielSchuessler@users.noreply.github.com>2018-10-06 21:55:44 +0200
commitee1bd952f5ad769091f699dfab7def6318282c32 (patch)
tree7d8e7c2471deea47bee2c0d2984b55317e7ead00
parentc2da066eceadca4bb6503c975b81a90b27d0e7e3 (diff)
downloadxmobar-ee1bd952f5ad769091f699dfab7def6318282c32.tar.gz
xmobar-ee1bd952f5ad769091f699dfab7def6318282c32.tar.bz2
Install handlers only for sigTERM and sigQUIT
-rw-r--r--src/Signal.hs40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/Signal.hs b/src/Signal.hs
index 0948896..74e40e9 100644
--- a/src/Signal.hs
+++ b/src/Signal.hs
@@ -88,26 +88,28 @@ withDeferSignals thing = do
let signals =
filter (not . flip inSignalSet reservedSignals)
- [ sigHUP
- -- , sigINT -- Handler already installed by GHC
- , sigQUIT
- , sigILL
- , sigABRT
- , sigFPE
- , sigSEGV
- --, sigPIPE -- Handler already installed by GHC
- , sigALRM
+ [ sigQUIT
, sigTERM
- , sigBUS
- , sigPOLL
- , sigPROF
- , sigSYS
- , sigTRAP
- , sigVTALRM
- , sigXCPU
- , sigXFSZ
- -- , sigUSR1 -- Handled by setupSignalHandler
- -- , sigUSR2 -- Handled by setupSignalHandler
+ --, sigINT -- Handler already installed by GHC
+ --, sigPIPE -- Handler already installed by GHC
+ --, sigUSR1 -- Handled by setupSignalHandler
+ --, sigUSR2 -- Handled by setupSignalHandler
+
+ -- One of the following appears to cause instability, see #360
+ --, sigHUP
+ --, sigILL
+ --, sigABRT
+ --, sigFPE
+ --, sigSEGV
+ --, sigALRM
+ --, sigBUS
+ --, sigPOLL
+ --, sigPROF
+ --, sigSYS
+ --, sigTRAP
+ --, sigVTALRM
+ --, sigXCPU
+ --, sigXFSZ
]
for_ signals $ \s ->