Commit 65bc696b authored by Matthew Holt's avatar Matthew Holt

Fix force quit using SIGINT

Only the outside function call is executed in a new goroutine when
invoking 'go'. Oops. Force quits (2 SIGINTs) now work again.
parent e7f08bff
...@@ -42,7 +42,9 @@ func trapSignalsCrossPlatform() { ...@@ -42,7 +42,9 @@ func trapSignalsCrossPlatform() {
os.Remove(PidFile) os.Remove(PidFile)
} }
go os.Exit(executeShutdownCallbacks("SIGINT")) go func() {
os.Exit(executeShutdownCallbacks("SIGINT"))
}()
} }
}() }()
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment