]> 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)
committerPierre Ossman <ossman@cendio.se>
Tue, 29 Dec 2015 14:11:26 +0000 (15:11 +0100)
commite5afb92cb9454b3e4018f4ccb088a089da2b1228
tree808fa899b42e251385d46c9e76d6af0534e362c1
parent1f8aba3147ec13aaa70a44372775b72bb4e59941
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