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