]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
note a bug that wmf just found
authorRoger Dingledine <arma@torproject.org>
Wed, 2 Feb 2005 06:28:45 +0000 (06:28 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 2 Feb 2005 06:28:45 +0000 (06:28 +0000)
svn:r3503

src/or/hibernate.c

index 979e2c31a463afabdd261e64a50ea31dd63f32c0..0e7aa2eb93f2a497453ff6e67292ad1d71c363bd 100644 (file)
@@ -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);
     }
   }