From bbac9e1d0ceb173e2c3c12b1837b6036f10f50ea Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 31 Aug 2016 10:57:09 -0400 Subject: Don't warn on unlink(bw_accounting) when errno == ENOENT Patch from pastly; fixes bug 19964. --- src/or/hibernate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/hibernate.c') 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)); -- cgit v1.2.3-54-g00ecf