1
0
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:
Brenden Matthews 2009-05-22 12:48:10 -06:00
parent 0dc7041e6f
commit c9951a3bac
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 */
}