fix bug #575: fork at shutdown, so that partent starts new worker
This commit is contained in:
parent
b12ca796be
commit
36b760a9f7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user