diff options
author | Roger Dingledine <arma@torproject.org> | 2008-06-17 08:15:42 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-06-17 08:15:42 +0000 |
commit | 1ad83d74b1a52828eefb7b871644d5550fd7c531 (patch) | |
tree | 956f511fe1935df3f257bd915c56dfd5da1b574e /src | |
parent | c19392469de2431974da5d5fc87f919772cc3b4c (diff) | |
download | tor-1ad83d74b1a52828eefb7b871644d5550fd7c531.tar.gz tor-1ad83d74b1a52828eefb7b871644d5550fd7c531.zip |
Send an initial "Starting" bootstrap status event, so we have a
state to start out in.
svn:r15326
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 3 | ||||
-rw-r--r-- | src/or/or.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 55ab39cca6..f2457c4205 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1407,6 +1407,9 @@ do_main_loop(void) stats_prev_global_read_bucket = global_read_bucket; stats_prev_global_write_bucket = global_write_bucket; + /* initialize the bootstrap status events to know we're starting up */ + control_event_bootstrap(BOOTSTRAP_STATUS_STARTING, 0); + if (trusted_dirs_reload_certs()) return -1; if (router_reload_v2_networkstatus()) { diff --git a/src/or/or.h b/src/or/or.h index b7d6e1371f..ca3c4cd371 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3054,7 +3054,7 @@ void enable_control_logging(void); /** Enum describing various stages of bootstrapping, for use with controller * bootstrap status events. The values range from 0 to 100. */ typedef enum { - BOOTSTRAP_STATUS_STARTING=0, + BOOTSTRAP_STATUS_STARTING=1, BOOTSTRAP_STATUS_CONN_DIR=5, BOOTSTRAP_STATUS_HANDSHAKE=-1, BOOTSTRAP_STATUS_HANDSHAKE_DIR=10, |