From 85f50543fbd3a1303a5c0db9332399caf5d690fa Mon Sep 17 00:00:00 2001 From: Sergio Date: Sun, 8 Mar 2026 13:31:58 -0700 Subject: [PATCH] fix(watch): restart watcher on SIGHUP --- watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.go b/watch.go index 8e7f7ccf7d..b67d004fa9 100644 --- a/watch.go +++ b/watch.go @@ -154,7 +154,7 @@ func isContextError(err error) bool { func closeOnInterrupt(w *fsnotify.Watcher) { ch := make(chan os.Signal, 1) - signal.Notify(ch, os.Interrupt, syscall.SIGTERM) + signal.Notify(ch, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP) go func() { <-ch w.Close()