1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

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.
This commit is contained in:
Phil Sutter 2009-09-20 17:48:55 +02:00
parent d163293f66
commit cfccea4079

View File

@ -6712,7 +6712,7 @@ int main(int argc, char **argv)
#endif /* XOAP */ #endif /* XOAP */
#ifdef HAVE_SYS_INOTIFY_H #ifdef HAVE_SYS_INOTIFY_H
inotify_fd = inotify_init(); inotify_fd = inotify_init1(IN_NONBLOCK);
#endif /* HAVE_SYS_INOTIFY_H */ #endif /* HAVE_SYS_INOTIFY_H */
initialisation(argc, argv); initialisation(argc, argv);