mirror of
https://github.com/go-task/task.git
synced 2025-02-09 13:47:06 +02:00
parent
65a71e5df3
commit
b3e4cfcf48
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user