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 b12ca796be
commit 36b760a9f7

View File

@ -1441,6 +1441,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 {