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()