projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc7041
)
Better checking for cases when inotify doesn't work.
author
Brenden Matthews
<brenden@rty.ca>
Fri, 22 May 2009 18:48:10 +0000
(12:48 -0600)
committer
Brenden Matthews
<brenden@rty.ca>
Fri, 22 May 2009 18:48:46 +0000
(12:48 -0600)
src/conky.c
patch
|
blob
|
history
src/llua.c
patch
|
blob
|
history
diff --git
a/src/conky.c
b/src/conky.c
index
c21b2c6
..
8d37cdb
100644
(file)
--- a/
src/conky.c
+++ b/
src/conky.c
@@
-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);
diff --git
a/src/llua.c
b/src/llua.c
index
e31c9d2
..
8b941e5
100644
(file)
--- a/
src/llua.c
+++ b/
src/llua.c
@@
-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 */
}