fix sigint handling
This commit is contained in:
parent
35da145cd1
commit
7c3fe35ca4
4 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
setSocketPath : "/tmp/wizard.sock"
|
||||
setMapRows : 20
|
||||
setMapColumns : 20
|
||||
setMapRows : 50
|
||||
setMapColumns : 50
|
||||
setSpawnerProbability : 0.01
|
||||
setFPS : 5
|
||||
|
|
|
@ -81,6 +81,6 @@ terminateGameOnSigint = do
|
|||
sendMessage (ClientMessage clientId ClientQuit) sock
|
||||
close sock
|
||||
-- Raise SIGINT again so it does not get blocked
|
||||
raiseSignal keyboardSignal
|
||||
-- raiseSignal keyboardSignal
|
||||
)
|
||||
Nothing
|
||||
|
|
|
@ -76,7 +76,6 @@ main = do
|
|||
)
|
||||
initRead
|
||||
initState
|
||||
forever $ pure ()
|
||||
where
|
||||
opts = info (options <**> helper)
|
||||
( fullDesc
|
||||
|
|
|
@ -74,7 +74,7 @@ terminateGameOnSigint path = do
|
|||
close sock
|
||||
removeIfExists path
|
||||
-- Raise SIGINT again so it does not get blocked
|
||||
raiseSignal sigINT
|
||||
-- raiseSignal sigINT
|
||||
)
|
||||
Nothing
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue