diff options
| -rw-r--r-- | platform/bsd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/bsd.h b/platform/bsd.h index 7a03700..bf7530d 100644 --- a/platform/bsd.h +++ b/platform/bsd.h @@ -57,7 +57,7 @@ fs_watch(struct platform *p, const char *path) close(p->dfd); p->dfd = -1; } - p->dfd = open(path, O_EVTONLY); + p->dfd = open(path, O_RDONLY); if (p->dfd == -1) return; EV_SET(&p->ev, p->dfd, EVFILT_VNODE, EV_ADD|EV_CLEAR, |