diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-07-26 13:04:13 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-07-26 13:04:13 +0200 |
commit | f4dce170d5eb4b798b4ca6c8480f10cacbc7d72c (patch) | |
tree | fa18c0b54f569b69c30fd5b605cca9a55423a3d9 | |
parent | 9b23e594bf2533b7fadeea1680b186e4775cfe17 (diff) |
fix inotify to work not only once
-rw-r--r-- | udevd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |