fix: handle SIGHUP in watcher (#2764)

This commit is contained in:
Mateen Anjum authored and GitHub committed 2026-04-09 08:15:37 +02:00
1 parent 2973dd75f9
commit 44e1350d0c
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ const maxInterruptSignals = 3
// time to do cleanup work.
func (e *Executor) InterceptInterruptSignals() {
ch := make(chan os.Signal, maxInterruptSignals)
signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
signal.Notify(ch, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP)
go func() {
for i := range maxInterruptSignals {