1
0
Fork 0
mirror of https://github.com/Luzifer/elb-instance-status.git synced 2024-12-22 19:01:19 +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)
}
}
}