fix: handle SIGHUP in watcher (#2764)

This commit is contained in:
Mateen Anjum 2026-04-09 02:15:37 -04:00 committed by GitHub
parent 2973dd75f9
commit 44e1350d0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {