]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
run_command: default exit code to -1
[pve-common.git] / src / PVE / Tools.pm
index 2cd47333edf1dc043568ac0d5bcb0be782ca2828..1f0ec75784cbbc8313b0b315026f09aa4a4f1835 100644 (file)
@@ -341,7 +341,7 @@ sub run_command {
     my $timeout;
     my $oldtimeout;
     my $pid;
-    my $exitcode;
+    my $exitcode = -1;
 
     my $outfunc;
     my $errfunc;