From 2d4e65e886b3e4baa413da142205487acf2e0a6d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 30 Apr 2009 14:42:38 -0700 Subject: [PATCH] leak-checker: Stop logging after fstat() fails. When fstat() fails, we should either stop logging or re-set the leak checker hooks. The previous code didn't do either. --- lib/leak-checker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/leak-checker.c b/lib/leak-checker.c index 83576af2..e91b7a69 100644 --- a/lib/leak-checker.c +++ b/lib/leak-checker.c @@ -181,6 +181,7 @@ reset_hooks(void) if (fstat(fileno(file), &s) < 0) { VLOG_WARN("cannot fstat leak checker log file: %s", strerror(errno)); + leak_checker_stop(); return; } if (s.st_size > limit) { -- 2.30.2