]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add comments for new functions
authorNick Mathewson <nickm@torproject.org>
Sat, 14 Mar 2015 18:27:33 +0000 (14:27 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 14 Mar 2015 18:28:29 +0000 (14:28 -0400)
src/or/main.c

index 888dabedc096d4f4e4e9d8dab5d7d5ce83e6e839..dd21b1a8f0a3c27b83dfcfd0efee9440560d7e07 100644 (file)
@@ -2087,6 +2087,10 @@ do_main_loop(void)
   return run_main_loop_until_done();
 }
 
+/**
+ * Run the main loop a single time. Return 0 for "exit"; -1 for "exit with
+ * error", and 1 for "run this again."
+ */
 static int
 run_main_loop_once(void)
 {
@@ -2139,6 +2143,11 @@ run_main_loop_once(void)
   return 1;
 }
 
+/** Run the run_main_loop_once() function until it declares itself done,
+ * and return its final return value.
+ *
+ * Shadow won't invoke this function, so don't fill it up with things.
+ */
 static int
 run_main_loop_until_done(void)
 {