fix warning
This commit is contained in:
parent
129be9cf68
commit
62c368dd7c
1 changed files with 3 additions and 3 deletions
|
@ -55,12 +55,12 @@ waitForTermination :: IO ()
|
||||||
waitForTermination = do
|
waitForTermination = do
|
||||||
lock <- newEmptyMVar
|
lock <- newEmptyMVar
|
||||||
#ifndef __WINDOWS__
|
#ifndef __WINDOWS__
|
||||||
let check sig lock = void $
|
let check sig = void $
|
||||||
installHandler sig (CatchOnce $ putMVar lock ()) Nothing
|
installHandler sig (CatchOnce $ putMVar lock ()) Nothing
|
||||||
check softwareTermination lock
|
check softwareTermination
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
whenM (queryTerminal stdInput) $
|
whenM (queryTerminal stdInput) $
|
||||||
check keyboardSignal lock
|
check keyboardSignal
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
takeMVar lock
|
takeMVar lock
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue