From c961b47445f435dab11096f65b1d501509b20698 Mon Sep 17 00:00:00 2001 From: skeezix Date: Mon, 15 Feb 2010 20:14:23 -0500 Subject: [PATCH] Minor changes, all commented out; bloody inotify. --- apps/pndnotifyd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/pndnotifyd.c b/apps/pndnotifyd.c index d31395b..13bfa93 100644 --- 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; } -- 2.39.5