[torqueusers] Bug in net_server.c (2.0.0p2)

Åke Sandgren ake.sandgren at hpc2n.umu.se
Fri Nov 11 01:47:56 MST 2005


Hi!
Following small patch fixes incorrect ordering of variable declarations
in net_server.c

--- src/lib/Libnet/net_server.c    Wed Nov  9 18:30:15 2005
+++ src/lib/Libnet/net_server.c       Fri Nov 11 09:45:11 2005
@@ -256,17 +256,17 @@

   fd_set selset;

   struct timeval timeout;
   void close_conn();

-  timeout.tv_usec = 0;
-  timeout.tv_sec  = waittime;
-
   char tmpLine[1024];
   char id[]="wait_request";
+
+  timeout.tv_usec = 0;
+  timeout.tv_sec  = waittime;

   selset = readset;  /* readset is global */

   n = select(FD_SETSIZE,&selset,(fd_set *)0,(fd_set *)0,&timeout);

   if (n == -1)




More information about the torqueusers mailing list