From 66f4ba40e852bbd27781efab6e4fd91207a4331d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 14 Mar 2009 01:44:52 +0000 Subject: [PATCH] -Allow noderange wvid to VM via flock regulated vncviewer startup. Still a race condition, would require patched vnc to do better. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/share/xcat/rvid/rvid.xen | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-client/share/xcat/rvid/rvid.xen b/xCAT-client/share/xcat/rvid/rvid.xen index fac969f6a..8422e2976 100755 --- a/xCAT-client/share/xcat/rvid/rvid.xen +++ b/xCAT-client/share/xcat/rvid/rvid.xen @@ -3,4 +3,10 @@ myport=${rvid_vncdisplay#*:} let myport=myport-5900; export VNC_VIA_CMD='/usr/bin/ssh -o BatchMode=yes -f -L "$L":"$H":"$R" "$G" sleep 20' -vncviewer :$myport -via $rvid_server AutoSelect=0 FullColor=1 >& /dev/null +( + flock 200 + vncviewer :$myport -via $rvid_server AutoSelect=0 FullColor=1 >& /dev/null & + sleep 0.2 + flock -u 200 +) 200> /tmp/xcat/virtvnclock +