summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-09-13 21:24:51 +0000
committerRoger Dingledine <arma@torproject.org>2005-09-13 21:24:51 +0000
commit26cc51ffeab5775273409266c9c40ff396f95b15 (patch)
treedce2573ad61f63d30b9e4777736797e2a947bcf8 /src/or/hibernate.c
parent890847d232015ccb3242b53a05da5844e55291aa (diff)
downloadtor-26cc51ffeab5775273409266c9c40ff396f95b15.tar.gz
tor-26cc51ffeab5775273409266c9c40ff396f95b15.zip
a bit more code cleanup
svn:r5033
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index db9c108131..cf7cacc3f4 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -413,10 +413,10 @@ accounting_run_housekeeping(time_t now)
}
if (time_to_record_bandwidth_usage(now)) {
if (accounting_record_bandwidth_usage(now)) {
- log_fn(LOG_ERR, "Couldn't record bandwidth usage; exiting.");
- /* XXX this can fail when you're out of fd's, causing a crash.
- * Perhaps the better answer is to hold the file open all the
- * time? */
+ log_fn(LOG_ERR, "Couldn't record bandwidth usage to disk; exiting.");
+ /* This can fail when we're out of fd's, causing a crash.
+ * The current answer is to reserve 32 more than we need, in
+ * set_max_file_descriptors(). */
exit(1);
}
}