From 49cdfb4c1f25b371474f3a355e205471daa08640 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Wed, 11 Nov 2009 18:18:23 +0100 Subject: libvncclient: better return value for non-forking listen. The return value now better reflects what has happened: 1 on success (incoming connection on listen socket, we accepted it successfully), -1 on error, 0 on timeout. Also change the select calls to not check _all_ possible file descriptors. Signed-off-by: Christian Beier Signed-off-by: Johannes Schindelin --- rfb/rfbclient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rfb/rfbclient.h') diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index 8d6a184..d70ece1 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -314,7 +314,7 @@ extern rfbBool HandleCursorShape(rfbClient* client,int xhot, int yhot, int width /* listen.c */ extern void listenForIncomingConnections(rfbClient* viewer); -extern rfbBool listenForIncomingConnectionsNoFork(rfbClient* viewer, int usec_timeout); +extern int listenForIncomingConnectionsNoFork(rfbClient* viewer, int usec_timeout); /* rfbproto.c */ -- cgit v1.2.1