]> source.dussan.org Git - tigervnc.git/commit
Fix race problem with detecting listening inetd sockets
authorTristan Schmelcher <tristan_schmelcher@alumni.uwaterloo.ca>
Fri, 2 Sep 2011 22:29:25 +0000 (15:29 -0700)
committerBrian P. Hinz <bphinz@users.sf.net>
Mon, 4 Jan 2016 02:58:29 +0000 (21:58 -0500)
commitfc1599b95f1dbdd33d1c83ab7a13997ea3e81c71
tree808fa899b42e251385d46c9e76d6af0534e362c1
parent8e751955b6ab996a30603ca56b3d084d2c7c1b16
Fix race problem with detecting listening inetd sockets

The previous detection would fail if the socket closed before we
had time to inspect it, which got us stuck in a loop as we would
try (and fail) to do accept() on a non-listening socket.
common/network/TcpSocket.cxx
common/network/TcpSocket.h
unix/xserver/hw/vnc/vncExtInit.cc