[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] bugfix: when our poll is interrupted, we believed the reven...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] bugfix: when our poll is interrupted, we believed the reven...
- From: arma@seul.org (Roger Dingledine)
- Date: Wed, 17 Nov 2004 15:26:41 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 17 Nov 2004 15:27:03 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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;
}
}