From cfccea4079ef41fe79f5e9e66f8cf792be6a107f Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sun, 20 Sep 2009 17:48:55 +0200 Subject: [PATCH] do not block when reading inotify_fd Originally, I was experiencing sporadic lockups when reading inotify_fd; which is strange, since it is protected by select(). This should fix it despite of the original problem. --- src/conky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conky.c b/src/conky.c index 4eb5741e..51d307f4 100644 --- a/src/conky.c +++ b/src/conky.c @@ -6712,7 +6712,7 @@ int main(int argc, char **argv) #endif /* XOAP */ #ifdef HAVE_SYS_INOTIFY_H - inotify_fd = inotify_init(); + inotify_fd = inotify_init1(IN_NONBLOCK); #endif /* HAVE_SYS_INOTIFY_H */ initialisation(argc, argv);