From bb1e32937af2668c41732b1e239fa61a3e9b1b28 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 28 Feb 2013 12:49:21 +0100 Subject: [PATCH] Revert "vncproxy: wait max 10s for the socket if it does not exist" This reverts commit 58504d5edfe531ace87c40258e1b15e1a9f21c06. The patch only works if the VM is on local host. --- PVE/API2/Qemu.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index f91716f3..1597e68b 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1110,9 +1110,6 @@ __PACKAGE__->register_method({ my $realcmd = sub { my $upid = shift; - my $c = 0; - while ( ++$c < 10 && !-e "/var/run/qemu-server/$vmid.vnc" ) { sleep(1); } - syslog('info', "starting vnc proxy $upid\n"); my $qmcmd = [@$remcmd, "/usr/sbin/qm", 'vncproxy', $vmid];