1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-15 19:56: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; break;
} }
#ifdef HAVE_SYS_INOTIFY_H #ifdef HAVE_SYS_INOTIFY_H
if (!inotify_config_wd) { if (inotify_fd && !inotify_config_wd) {
inotify_config_wd = inotify_add_watch(inotify_fd, inotify_config_wd = inotify_add_watch(inotify_fd,
current_config, current_config,
IN_MODIFY); IN_MODIFY);

View File

@ -48,7 +48,7 @@ void llua_load(const char *script)
ERR("llua_load: %s", lua_tostring(lua_L, -1)); ERR("llua_load: %s", lua_tostring(lua_L, -1));
lua_pop(lua_L, 1); lua_pop(lua_L, 1);
#ifdef HAVE_SYS_INOTIFY_H #ifdef HAVE_SYS_INOTIFY_H
} else if (!llua_block_notify) { } else if (!llua_block_notify && inotify_fd) {
llua_append_notify(script); llua_append_notify(script);
#endif /* HAVE_SYS_INOTIFY_H */ #endif /* HAVE_SYS_INOTIFY_H */
} }