]> source.dussan.org Git - tigervnc.git/commit
vncserver: Display check should check for lock file first
authorMark Mielke <mark.mielke@gmail.com>
Wed, 29 Jul 2020 03:46:02 +0000 (23:46 -0400)
committerMark Mielke <mark.mielke@gmail.com>
Wed, 29 Jul 2020 04:30:48 +0000 (00:30 -0400)
commit344a9b2da3a37d79cf03183ff7b33ccf267b85c1
treec7a6f58b0ad65930caa06d9b275ba6997a17e863
parent9842baa3ccf9aa8464f1d4eff840a1930cc18877
vncserver: Display check should check for lock file first

Checking for the existence of `/tmp/.X<n>-lock` is a fast read-only
operation, while calls to bind() or connect() are more expensive and
may have side effects. Perform the fast operation first.
unix/vncserver/vncserver.in