fix bug #575: fork at shutdown, so that partent starts new worker

This commit is contained in:
Dietmar Maurer 2015-03-10 08:23:18 +01:00
parent 6a71fe01f2
commit 9cad08ca19

View File

@ -1446,6 +1446,11 @@ sub wait_end_loop {
return;
}
# fork and exit, so that parent starts a new worker
if (fork()) {
exit(0);
}
# else we need to wait until all open connections gets closed
my $w; $w = AnyEvent->timer (after => 1, interval => 1, cb => sub {
eval {