aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-02-02 06:28:45 +0000
committerRoger Dingledine <arma@torproject.org>2005-02-02 06:28:45 +0000
commitf575d29a5966689de5e75c05968da4b52ea9de51 (patch)
treedda65183ae86d109200613a76b18ce3ac4793d24 /src/or/hibernate.c
parentc1656f41b40645f541795b995c5cdbf50ffa785d (diff)
downloadtor-f575d29a5966689de5e75c05968da4b52ea9de51.tar.gz
tor-f575d29a5966689de5e75c05968da4b52ea9de51.zip
note a bug that wmf just found
svn:r3503
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 979e2c31a4..0e7aa2eb93 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -411,6 +411,9 @@ 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? */
exit(1);
}
}