And use kill(9) instead of kill(-9), which simply hangs
die "fork compressor '$comp' failed\n";
};
if (my $err = $@) {
- warn $err;
+ $self->logerr($err);
POSIX::_exit(1);
}
POSIX::_exit(0);
my $err = $@;
if ($err) {
+ $self->logerr($err);
$self->loginfo("aborting backup job");
eval { PVE::QemuServer::vm_mon_cmd($vmid, 'backup-cancel'); };
- warn $@ if $@;
+ if (my $err1 = $@) {
+ $self->logerr($err1);
+ }
}
if ($stop_after_backup) {
if ($err) {
if ($cpid) {
- kill(-9, $cpid);
+ kill(9, $cpid);
waitpid($cpid, 0);
}
die $err;
* Migrate: fix check if a backing file exist
* vncproxy: wait max 10s for the socket if it does not exist
+
+ * vzdump: improve error reporting
-- Proxmox Support Team <support@proxmox.com> Thu, 28 Feb 2013 06:21:30 +0100