[or-cvs] bugfix: when our poll is interrupted, we believed the reven...
Roger Dingledine
arma at seul.org
Wed Nov 17 20:26:41 UTC 2004
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;
}
}
More information about the tor-commits
mailing list