mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
wait for children before exit; avoid a 'socket already used' issue on restart;
This commit is contained in:
parent
3050e0bbe5
commit
a7ccd7568d
@ -89,6 +89,7 @@ sub REAPER {
|
||||
sub TERM {
|
||||
print "SIGTERM received\n";
|
||||
flush_cache(1);
|
||||
while (wait() != -1) {}
|
||||
exit 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user