On 4/24/12 5:34 AM, Arthur Huillet wrote:
> Looking at the script, there's a pretty obvious race condition.
> (by the way: http://www.realvnc.com/pipermail/vnc-list/2007-April/057455.html
> http://sourceforge.net/tracker/?func=detail&aid=3123682&group_id=14067&atid=114067
> )
> 
> The script loops from 1 to 99 and calls "CheckDisplayNumber", then starts Xvnc
> on the display it picked.
> 
> You can theoretically have two scripts run "CheckDisplayNumber" at the same
> time, for the same display number, and they will both select the display
> number. I can easily reproduce the issue with a HPC scheduler (SGE), I have 
> yet
> to try from the commandline.
> 
> So - there's really a problem. I'm not sure if there is an easy fix however,
> we'd need the "Check + launch Xvnc" operations to be done atomically which at
> the level of a Perl script is not possible as far as I know.

Bear in mind that TurboVNC was shipped by Sun as a product for 4 years,
and it was designed to be run in an SGE environment.  You probably need
to launch it with the -fg switch when running in SGE.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
VirtualGL-Users mailing list
VirtualGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-users

Reply via email to