mirror of
https://github.com/go-task/task.git
synced 2025-07-13 01:30:33 +02:00
@ -18,7 +18,7 @@ func (e *Executor) InterceptInterruptSignals() {
|
||||
signal.Notify(ch, os.Interrupt, syscall.SIGTERM)
|
||||
|
||||
go func() {
|
||||
for i := 0; i < maxInterruptSignals; i++ {
|
||||
for i := range maxInterruptSignals {
|
||||
sig := <-ch
|
||||
|
||||
if i+1 >= maxInterruptSignals {
|
||||
|
Reference in New Issue
Block a user