5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-26 07:21:26 +03:00

Daemon: call terminate_server if we get unexpected errors

This commit is contained in:
Dietmar Maurer 2015-01-01 12:06:17 +01:00
parent d7950851db
commit 8826037040

View File

@ -341,7 +341,7 @@ my $server_run = sub {
if ($err) {
syslog ('err', "ERROR: $err");
# fixme: kill all workers
&$terminate_server($self);
if (my $wait_time = $self->{restart_on_error}) {
$self->restart_daemon($wait_time);