From: Stefan Schantl Date: Wed, 25 Nov 2015 08:24:54 +0000 (+0100) Subject: Decelerate shutdown process for one second. X-Git-Tag: 2.0~66 X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=commitdiff_plain;h=a9ef502cf10ed2d4b212dc9b782a50d85089a509 Decelerate shutdown process for one second. When shutting down guardian the function now will pause for one second to give perl some more time to proper clean up everything before finally exiting the process. Signed-off-by: Stefan Schantl --- diff --git a/guardian b/guardian index cf759b0..2326684 100644 --- a/guardian +++ b/guardian @@ -311,6 +311,11 @@ sub Shutdown () { # Remove socket file on exit. &Guardian::Socket::RemoveSocketFile(); + # Sleep for one second to give perl some + # time to proper clean up everything before + # exiting. + sleep(1); + # Exit guardian. exit; }