diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-03-14 14:27:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-03-14 14:28:29 -0400 |
commit | ddb1889eb8bc128ec0fca35f15b1bf90d2b629ac (patch) | |
tree | ba7010f72bffd0c21b504636465b88f1dc4aa4ee /src/or | |
parent | 92d04721a2a614e40d6393ccc64ff2e86b71d778 (diff) | |
download | tor-ddb1889eb8bc128ec0fca35f15b1bf90d2b629ac.tar.gz tor-ddb1889eb8bc128ec0fca35f15b1bf90d2b629ac.zip |
Add comments for new functions
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 888dabedc0..dd21b1a8f0 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -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) { |