1
0
mirror of https://github.com/Luzifer/elb-instance-status.git synced 2024-09-16 13:48:34 +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)
}
}
}