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
@@ -38,9 +38,9 @@ func Start(passphrase []byte) {
defer listener.Close()
log.Printf("RPC daemon listening on unix://%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, syscall.SIGINT, syscall.SIGTERM)
go func() {
<-sigChan
listener.Close()