fix inotify to work not only once

This commit is contained in:
Matthias Schwarzott
2007-07-26 13:04:13 +02:00
committed by Kay Sievers
parent 9b23e594bf
commit f4dce170d5
+1 -1
View File
@@ -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;