git.openpandora.org
/
pandora-libraries.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
558ccfe
)
Minor changes, all commented out; bloody inotify.
author
skeezix
<skeezix@flotsam-vm.(none)>
Tue, 16 Feb 2010 01:14:23 +0000
(20:14 -0500)
committer
skeezix
<skeezix@flotsam-vm.(none)>
Tue, 16 Feb 2010 01:14:23 +0000
(20:14 -0500)
apps/pndnotifyd.c
patch
|
blob
|
history
diff --git
a/apps/pndnotifyd.c
b/apps/pndnotifyd.c
index
d31395b
..
13bfa93
100644
(file)
--- a/
apps/pndnotifyd.c
+++ b/
apps/pndnotifyd.c
@@
-568,9
+568,20
@@
void setup_notifications ( void ) {
pnd_log ( pndn_rem, "Watching path '%s' and its descendents.\n", buffer );
pnd_notify_watch_path ( nh, buffer, PND_NOTIFY_RECURSE );
+ //pnd_notify_watch_path ( nh, buffer, 0 /* no recurse */ );
+
}
SEARCHPATH_POST
+#if 0
+ sleep ( 1 ); // wait for events to trigger?
+
+ // clear out any notifies we just created
+ while ( pnd_notify_rediscover_p ( nh ) ) {
+ usleep ( 100 ); // spin
+ } // while
+#endif
+
return;
}