[patch] 4.1.1: x0vncserver fix
Tim Waugh
twaugh "at" redhat.com
Thu Dec 8 09:43:00 2005
The main loop in x0vncserver does not always initialize the timeout
variable. In this case, it may be that it contains invalid values and
causes select to fail. This has been reported to happen here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=172410
Here is the fix:
--- vnc-4_1_1-unixsrc/unix/x0vncserver/x0vncserver.cxx.select 2005-12-05 10:02:30.000000000 +0000
+++ vnc-4_1_1-unixsrc/unix/x0vncserver/x0vncserver.cxx 2005-12-05 10:02:32.000000000 +0000
@@ -302,6 +302,7 @@
fd_set rfds;
std::list<Socket*> sockets;
std::list<Socket*>::iterator i;
+ tv.tv_usec = tv.tv_sec = 0;
// Process any incoming X events
TXWindow::handleXEvents(dpy);
Tim.
*/