mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35: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:
parent
d163293f66
commit
cfccea4079
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user