Tidy signal capturing; bump dependencies

This commit is contained in:
2026-02-09 22:59:24 -05:00
parent 57eefdf8b4
commit 4fd72b0042
4 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -52,9 +52,9 @@ func Start(passphrase []byte) {
defer listener.Close()
log.Printf("RPC daemon listening on %s", socketPath)
// capture sigterms to ensure listener is closed
// capture termination signals to ensure listener is closed
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
signal.Notify(sigChan, os.Interrupt)
// create inactivity timer
timer := time.NewTimer(time.Duration(Timeout) * time.Second)
killTimer := make(chan struct{})