mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-17 20:23:28 +00:00
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;
|
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
|
# else we need to wait until all open connections gets closed
|
||||||
my $w; $w = AnyEvent->timer (after => 1, interval => 1, cb => sub {
|
my $w; $w = AnyEvent->timer (after => 1, interval => 1, cb => sub {
|
||||||
eval {
|
eval {
|
||||||
|
Loading…
Reference in New Issue
Block a user