fmsg: resume on exit
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
43d2e4f5d7
commit
a0062d8275
@ -53,6 +53,7 @@ func queue(op dOp) {
|
|||||||
type dOp interface{ Do() }
|
type dOp interface{ Do() }
|
||||||
|
|
||||||
func Exit(code int) {
|
func Exit(code int) {
|
||||||
|
Resume() // resume here to avoid deadlock
|
||||||
queueSync.Wait()
|
queueSync.Wait()
|
||||||
os.Exit(code)
|
os.Exit(code)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user