From: Roger Dingledine Date: Wed, 17 Nov 2004 20:26:39 +0000 (+0000) Subject: bugfix: when our poll is interrupted, we believed the revents values. X-Git-Tag: tor-0.0.9rc1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e4763655d74dcb82b51b97ab716672605b1cbe9;p=thirdparty%2Ftor.git bugfix: when our poll is interrupted, we believed the revents values. svn:r2907 --- diff --git a/src/or/main.c b/src/or/main.c index c3de91c886..b93ee6e30c 100644 --- a/src/or/main.c +++ b/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; } }