[tor-commits] [tor/master] Add a comment about removing the failsafe event loop exit code

nickm at torproject.org nickm at torproject.org
Fri Oct 27 15:15:56 UTC 2017


commit 79e7c0af0e4bd9a813ddd9226b43cc49112edd19
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Oct 27 11:15:43 2017 -0400

    Add a comment about removing the failsafe event loop exit code
---
 src/or/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/main.c b/src/or/main.c
index a615a6be0..bb5935690 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -691,6 +691,7 @@ tor_shutdown_event_loop_and_exit(int exitcode)
 
   /* Die with an assertion failure in ten seconds, if for some reason we don't
    * exit normally. */
+  /* XXXX We should consider this code if it's never used. */
   struct timeval ten_seconds = { 10, 0 };
   event_base_once(tor_libevent_get_base(), -1, EV_TIMEOUT,
                   shutdown_did_not_work_callback, NULL,



More information about the tor-commits mailing list