summaryrefslogtreecommitdiffstats
path: root/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sockets.c b/sockets.c
index 83b747e..760dc08 100644
--- a/sockets.c
+++ b/sockets.c
@@ -159,6 +159,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
if (!rfbScreen->inetdInitDone && rfbScreen->inetdSock != -1) {
rfbNewClientConnection(rfbScreen,rfbScreen->inetdSock);
rfbScreen->inetdInitDone = TRUE;
+ FD_SET(rfbScreen->inetdSock,&(rfbScreen->allFds));
}
memcpy((char *)&fds, (char *)&(rfbScreen->allFds), sizeof(fd_set));