chiark / gitweb /
fix inotify to work not only once
authorMatthias Schwarzott <zzam@gentoo.org>
Thu, 26 Jul 2007 11:04:13 +0000 (13:04 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 26 Jul 2007 11:04:13 +0000 (13:04 +0200)
udevd.c

diff --git a/udevd.c b/udevd.c
index 69572c6..8f56de6 100644 (file)
--- 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;