summaryrefslogtreecommitdiff
path: root/sigtrap_posix.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-03-25 11:28:54 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-03-25 11:28:54 -0600
commitd06d0e79f839a26ab2cf81b00ba2d180623c57a9 (patch)
treec215c3c16ad9280df4721b53460bd36aa5893489 /sigtrap_posix.go
parenta58f240d3ecbb59285303746406cab50217f8d24 (diff)
go.mod: Upgrade CertMagic to v0.16.0
Includes several breaking changes; code base updated accordingly. - Added lots of context arguments - Use fs.ErrNotExist - Rename ACMEManager -> ACMEIssuer; CertificateManager -> Manager
Diffstat (limited to 'sigtrap_posix.go')
-rw-r--r--sigtrap_posix.go3
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: