diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-20 23:31:00 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-20 23:31:00 +0000 |
commit | 0da256ef976076709f7bbf503e6b6bc50a403380 (patch) | |
tree | 531b978e13bf5925c3cc91ed2f4aea3cd3bed2f0 /src/or/rephist.c | |
parent | 18d752e518c41f7190b77dc36d22150e89ffc115 (diff) | |
download | tor-0da256ef976076709f7bbf503e6b6bc50a403380.tar tor-0da256ef976076709f7bbf503e6b6bc50a403380.tar.gz |
when we get a sigint, don't accept new connections/circuits,
but delay 30 seconds until exiting.
if we get a second sigint, exit immediately.
svn:r2070
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 5992a9581..0cca2097d 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -315,7 +315,7 @@ void write_rep_history(const char *filename) #define NUM_TOTALS (NUM_SECS_BW_SUM_IS_VALID/NUM_SECS_BW_SUM_INTERVAL) /** - * Struture to track bandwidth use, and remember the maxima for a given + * Structure to track bandwidth use, and remember the maxima for a given * time period. */ typedef struct bw_array_t { @@ -338,7 +338,7 @@ typedef struct bw_array_t { int maxima[NUM_TOTALS]; } bw_array_t; -/** Shift the current period of b foreward by one. +/** Shift the current period of b forward by one. */ static void commit_max(bw_array_t *b) { /* Store maximum from current period. */ @@ -351,7 +351,7 @@ static void commit_max(bw_array_t *b) { b->max_total = 0; } -/** Shift the current observation time of 'b' foreward by one second. +/** Shift the current observation time of 'b' forward by one second. */ static INLINE void advance_obs(bw_array_t *b) { int nextidx; |