diff options
Diffstat (limited to 'src/watcher.c')
-rw-r--r-- | src/watcher.c | 2 |
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; } |