From: skeezix Date: Tue, 16 Feb 2010 01:14:23 +0000 (-0500) Subject: Minor changes, all commented out; bloody inotify. X-Git-Tag: Release-2010-05/1~115^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c961b47445f435dab11096f65b1d501509b20698;p=pandora-libraries.git Minor changes, all commented out; bloody inotify. --- 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; }