Browse Source

bugfix: when our poll is interrupted, we believed the revents values.

svn:r2907
Roger Dingledine 21 years ago
parent
commit
2e4763655d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/main.c

+ 3 - 0
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;
       }
     }