+
+ pnd_log ( pndn_rem, "System changes detected in dbus or watched paths .. performing re-discover!\n" );
+
+ // if this was a forced scan, lets not do that next iteration
+ if ( scanonlaunch ) {
+ pnd_log ( pndn_rem, "scan-on-first-launch detected an event\n" );
+ scanonlaunch = 0;
+ }
+
+ if ( watch_inotify ) {
+ pnd_log ( pndn_rem, "inotify detected an event\n" );
+ }
+
+ if ( watch_dbus ) {
+ pnd_log ( pndn_rem, "dbusnotify detected an event\n" );
+ }
+
+ if ( time ( NULL ) - createtime < interval_secs ) {
+ pnd_log ( pndn_rem, "Rediscovery request comes to soon after previous discovery; delaying.\n" );
+ sleep ( interval_secs );
+ idle = 0;
+ continue;
+ }
+
+ pnd_log ( pndn_rem, "------------------------------------------------------\n" );
+
+ createtime = time ( NULL ); // all 'new' .destops are created at or after this time; prev are old.