aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-31 10:57:09 -0400
committerNick Mathewson <nickm@torproject.org>2016-08-31 10:57:09 -0400
commitbbac9e1d0ceb173e2c3c12b1837b6036f10f50ea (patch)
tree8f96559c863d81540e3bbf6d75ede46593969bfa /src/or/hibernate.c
parentc15b99e6e99fef6130dd6c53609a664efd82ef50 (diff)
downloadtor-bbac9e1d0ceb173e2c3c12b1837b6036f10f50ea.tar.gz
tor-bbac9e1d0ceb173e2c3c12b1837b6036f10f50ea.zip
Don't warn on unlink(bw_accounting) when errno == ENOENT
Patch from pastly; fixes bug 19964.
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 209aae01cf..7e25306234 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -692,7 +692,7 @@ read_bandwidth_usage(void)
int res;
res = unlink(fname);
- if (res != 0) {
+ if (res != 0 && errno != ENOENT) {
log_warn(LD_FS,
"Failed to unlink %s: %s",
fname, strerror(errno));