[pve-devel] r5731 - pve-manager/pve2/lib/PVE/API2
svn-commits at proxmox.com
svn-commits at proxmox.com
Mon Mar 21 07:22:47 CET 2011
Author: dietmar
Date: 2011-03-21 07:22:47 +0100 (Mon, 21 Mar 2011)
New Revision: 5731
Modified:
pve-manager/pve2/lib/PVE/API2/Nodes.pm
Log:
fix fork_worker parameters
Modified: pve-manager/pve2/lib/PVE/API2/Nodes.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/Nodes.pm 2011-03-21 06:22:10 UTC (rev 5730)
+++ pve-manager/pve2/lib/PVE/API2/Nodes.pm 2011-03-21 06:22:47 UTC (rev 5731)
@@ -461,7 +461,7 @@
my $cmdstr = join (' ', @cmd);
syslog ('info', "launch command: $cmdstr");
- if (system (@cmd) != 0) {
+ if (system(@cmd) != 0) {
my $msg = "vncterm failed - $?";
syslog ('err', $msg);
return;
@@ -470,7 +470,7 @@
return;
};
- my $upid = $rpcenv->fork_worker('vncterm', "", $realcmd);
+ my $upid = $rpcenv->fork_worker('vncshell', "", $user, $realcmd);
return {
user => $user,
More information about the pve-devel
mailing list