From 33d8e853b47bfde51cbe93b2ef09bc1468e73a9d Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 17 Nov 2004 20:26:39 +0000 Subject: [PATCH] bugfix: when our poll is interrupted, we believed the revents values. svn:r2907 --- trunk/src/or/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/src/or/main.c b/trunk/src/or/main.c index c3de91c886..b93ee6e30c 100644 --- a/trunk/src/or/main.c +++ b/trunk/src/or/main.c @@ -862,6 +862,9 @@ static int do_main_loop(void) { 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; } }