diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-05-05 21:35:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-05-05 21:35:12 +0000 |
commit | e6477a8e168ad4d9f367172785e1fcca14d46f0d (patch) | |
tree | 3d963155c498c1e0cdb65f1940c0b72d9f35cf9c | |
parent | 682a805092260d15ceef81a855ea30004595966f (diff) | |
download | tor-e6477a8e168ad4d9f367172785e1fcca14d46f0d.tar.gz tor-e6477a8e168ad4d9f367172785e1fcca14d46f0d.zip |
Document the rest of main.c
svn:r1797
-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 cda00889b2..e21b95d064 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -772,6 +772,8 @@ static void catch(int the_signal) { #endif /* signal stuff */ } +/* Write all statistics to the log, with log level 'severity'. Called + * in response to a SIGUSR1. */ static void dumpstats(int severity) { int i; connection_t *conn; @@ -826,6 +828,9 @@ static void dumpstats(int severity) { rend_service_dump_stats(severity); } +/* Called before we make any calls to network-related functions. + * (Some operating systems require their network libraries to be + * initialized.) */ int network_init(void) { #ifdef MS_WINDOWS @@ -843,6 +848,8 @@ int network_init(void) return 0; } +/* Called by exit() as we shut down the process. + */ void exit_function(void) { #ifdef MS_WINDOWS @@ -850,6 +857,8 @@ void exit_function(void) #endif } +/* Main entry point for the Tor command-line client. + */ int tor_main(int argc, char *argv[]) { /* give it somewhere to log to initially */ |