diff options
author | Tim Pepper <timothy.c.pepper@linux.intel.com> | 2012-09-28 09:53:31 -0700 |
---|---|---|
committer | Tim Pepper <timothy.c.pepper@linux.intel.com> | 2012-09-28 09:53:31 -0700 |
commit | ff07c52f47c0e9ba21283da1e85bf9677858f036 (patch) | |
tree | 9ff09f0cd4162522aab0a5cb6151bae9dcd05512 | |
parent | 40ac7b1dd6474373ceb742a5b754f6e95ec69151 (diff) | |
download | corewatcher-ff07c52f47c0e9ba21283da1e85bf9677858f036.tar.gz corewatcher-ff07c52f47c0e9ba21283da1e85bf9677858f036.tar.bz2 corewatcher-ff07c52f47c0e9ba21283da1e85bf9677858f036.zip |
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 <timothy.c.pepper@linux.intel.com>
-rw-r--r-- | src/corewatcher.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |