mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Better checking for cases when inotify doesn't work.
This commit is contained in:
parent
0dc7041e6f
commit
c9951a3bac
@ -6733,7 +6733,7 @@ static void main_loop(void)
|
||||
break;
|
||||
}
|
||||
#ifdef HAVE_SYS_INOTIFY_H
|
||||
if (!inotify_config_wd) {
|
||||
if (inotify_fd && !inotify_config_wd) {
|
||||
inotify_config_wd = inotify_add_watch(inotify_fd,
|
||||
current_config,
|
||||
IN_MODIFY);
|
||||
|
@ -48,7 +48,7 @@ void llua_load(const char *script)
|
||||
ERR("llua_load: %s", lua_tostring(lua_L, -1));
|
||||
lua_pop(lua_L, 1);
|
||||
#ifdef HAVE_SYS_INOTIFY_H
|
||||
} else if (!llua_block_notify) {
|
||||
} else if (!llua_block_notify && inotify_fd) {
|
||||
llua_append_notify(script);
|
||||
#endif /* HAVE_SYS_INOTIFY_H */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user