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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user