From f4dce170d5eb4b798b4ca6c8480f10cacbc7d72c Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Thu, 26 Jul 2007 13:04:13 +0200 Subject: [PATCH] fix inotify to work not only once --- udevd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udevd.c b/udevd.c index 69572c62..8f56de6f 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; -- 2.39.5