1
0
mirror of https://github.com/go-task/task.git synced 2026-04-24 19:54:16 +02:00

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
+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 {