1
0
Fork 0
mirror of https://github.com/Luzifer/elb-instance-status.git synced 2024-11-08 05:50:06 +00:00

Fix: Give the process kill a bit more time to succeed

This commit is contained in:
Knut Ahlers 2016-11-30 11:57:16 +01:00
parent 1176799e0e
commit 4288a67f10
No known key found for this signature in database
GPG key ID: 6E122DD2F6F74ABB

View file

@ -155,7 +155,7 @@ func executeAndRegisterCheck(ctx context.Context, checkID string) {
case <-ctx.Done():
log.Printf("Execution of check '%s' was killed through context timeout.", checkID)
cmd.Process.Kill()
time.Sleep(time.Millisecond)
time.Sleep(100 * time.Millisecond)
}
}
}