[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] note a bug that wmf just found
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
hibernate.c
Log Message:
note a bug that wmf just found
Index: hibernate.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- hibernate.c 1 Feb 2005 02:45:28 -0000 1.43
+++ hibernate.c 2 Feb 2005 06:28:45 -0000 1.44
@@ -411,6 +411,9 @@
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);
}
}