Don't warn on unlink(bw_accounting) when errno == ENOENT

Patch from pastly; fixes bug 19964.
This commit is contained in:
Nick Mathewson
2016-08-31 10:57:09 -04:00
parent c15b99e6e9
commit bbac9e1d0c
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -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));