diff --git a/sigtrap.go b/sigtrap.go index a456434bb..185631bdf 100644 --- a/sigtrap.go +++ b/sigtrap.go @@ -42,7 +42,9 @@ func trapSignalsCrossPlatform() { os.Remove(PidFile) } - go os.Exit(executeShutdownCallbacks("SIGINT")) + go func() { + os.Exit(executeShutdownCallbacks("SIGINT")) + }() } }() }