On Tue, 24 Apr 2012 04:55:40 -0500 DRC <dcomman...@users.sourceforge.net> wrote:
> TurboVNC's version of vncserver isn't doing anything substantially > different from the equivalent script in RealVNC, TigerVNC, etc. in terms > of picking the display number. 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. -- Greetings, A. Huillet ------------------------------------------------------------------------------ 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