summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-07-26 13:04:13 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-07-26 13:04:13 +0200
commitf4dce170d5eb4b798b4ca6c8480f10cacbc7d72c (patch)
treefa18c0b54f569b69c30fd5b605cca9a55423a3d9 /udevd.c
parent9b23e594bf2533b7fadeea1680b186e4775cfe17 (diff)
fix inotify to work not only once
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udevd.c b/udevd.c
index 69572c6268..8f56de6ffb 100644
--- a/udevd.c
+++ b/udevd.c
@@ -1202,7 +1202,7 @@ int main(int argc, char *argv[], char *envp[])
reload_config = 1;
buf = malloc(nbytes);
- if (buf != NULL) {
+ if (buf == NULL) {
err("error getting buffer for inotify, disable watching");
close(inotify_fd);
inotify_fd = -1;