[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] bugfix: when our poll is interrupted, we believed the reven...



Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	main.c 
Log Message:
bugfix: when our poll is interrupted, we believed the revents values.


Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.378
retrieving revision 1.379
diff -u -d -r1.378 -r1.379
--- main.c	15 Nov 2004 09:05:54 -0000	1.378
+++ main.c	17 Nov 2004 20:26:39 -0000	1.379
@@ -862,6 +862,9 @@
         return -1;
       } else {
         log_fn(LOG_DEBUG,"poll interrupted.");
+        /* You can't trust the results of this poll(). Go back to the
+         * top of the big for loop. */
+        continue;
       }
     }