mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05: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
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ func trapSignalsCrossPlatform() {
|
|||
os.Remove(PidFile)
|
||||
}
|
||||
|
||||
go os.Exit(executeShutdownCallbacks("SIGINT"))
|
||||
go func() {
|
||||
os.Exit(executeShutdownCallbacks("SIGINT"))
|
||||
}()
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue