diff options
Diffstat (limited to 'sigtrap_posix.go')
-rw-r--r-- | sigtrap_posix.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sigtrap_posix.go b/sigtrap_posix.go index b6c4cbf..706d0c2 100644 --- a/sigtrap_posix.go +++ b/sigtrap_posix.go @@ -18,6 +18,7 @@ package caddy import ( + "context" "os" "os/signal" "syscall" @@ -36,7 +37,7 @@ func trapSignalsPosix() { switch sig { case syscall.SIGQUIT: Log().Info("quitting process immediately", zap.String("signal", "SIGQUIT")) - certmagic.CleanUpOwnLocks(Log()) // try to clean up locks anyway, it's important + certmagic.CleanUpOwnLocks(context.TODO(), Log()) // try to clean up locks anyway, it's important os.Exit(ExitCodeForceQuit) case syscall.SIGTERM: |