mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-21 16:10:45 +08:00
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.
This commit is contained in:
parent
e7f08bff38
commit
65bc696b0c
|
@ -42,7 +42,9 @@ func trapSignalsCrossPlatform() {
|
||||||
os.Remove(PidFile)
|
os.Remove(PidFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
go os.Exit(executeShutdownCallbacks("SIGINT"))
|
go func() {
|
||||||
|
os.Exit(executeShutdownCallbacks("SIGINT"))
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user