aboutsummaryrefslogtreecommitdiff
path: root/src/watcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/watcher.c')
-rw-r--r--src/watcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/watcher.c b/src/watcher.c
index afac389..7275640 100644
--- a/src/watcher.c
+++ b/src/watcher.c
@@ -334,7 +334,7 @@ setwatcher(struct hashent *ent, void *data)
if (dwp->wd == -1 && dirwatcher_init(dwp) == 0)
watch_subdirs(dwp, 0);
- if (dwp->wd)
+ if (dwp->wd >= 0)
*success = 1;
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.