From: Roger Dingledine Date: Wed, 2 Feb 2005 06:28:45 +0000 (+0000) Subject: note a bug that wmf just found X-Git-Tag: tor-0.1.0.1-rc~337 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f575d29a5966689de5e75c05968da4b52ea9de51;p=thirdparty%2Ftor.git note a bug that wmf just found svn:r3503 --- 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); } }