From ff07c52f47c0e9ba21283da1e85bf9677858f036 Mon Sep 17 00:00:00 2001 From: Tim Pepper Date: Fri, 28 Sep 2012 09:53:31 -0700 Subject: [PATCH] Unconditionally scan at start Originally there was an unconditional scan on start up followed by an exit if in test mode. With the changes I started for making things more event driven, I moved that initial scan to an 'if test mode, scan then exit' block. We do actually want to always scan on start to get existing reports processed promptly. Signed-off-by: Tim Pepper --- src/corewatcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/corewatcher.c b/src/corewatcher.c index 457eb1a..d7b9fa8 100644 --- a/src/corewatcher.c +++ b/src/corewatcher.c @@ -267,8 +267,9 @@ int main(int argc, char**argv) if (!debug) sleep(20); + scan_corefolders(NULL); + if (testmode) { - scan_corefolders(NULL); fprintf(stderr, "+ Exiting from testmode\n"); goto out; } -- 2.7.4