Menu

#1071 Race Condition when starting multiple vncserver instances

open
5
2010-11-30
2010-11-30
Brian Z
No

There is a race condition in the vncserver script in 1.3.10 when multiple vncserver instances attempt to start Xvnc on the same display number at the same time. Both scripts may complete CheckDisplayNumber before either script starts the Xvnc Process. In that case, the second instance of vncserver will overwrite the pidFile of the first instance. Depending on the time delay, the first instance of vncserver will either believe it could not start Xvnc, when it actually did, or vncserver will be unable to kill the Xvnc process when it is finished. Either way, the result is an "orphaned" Xvnc process.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB