summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/linux/ofilenotify.cpp
Side-by-side diff
Diffstat (limited to 'libopie2/opiecore/linux/ofilenotify.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/linux/ofilenotify.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/libopie2/opiecore/linux/ofilenotify.cpp b/libopie2/opiecore/linux/ofilenotify.cpp
index a7820ee..68c5a96 100644
--- a/libopie2/opiecore/linux/ofilenotify.cpp
+++ b/libopie2/opiecore/linux/ofilenotify.cpp
@@ -238,2 +238,4 @@ bool OFileNotification::activate( const OFileNotificationEvent* e )
+ //FIXME: Should we really deliver QueueOverflow and/or Ignore to user level code?
+
// dumb signal
@@ -261,2 +263,4 @@ bool OFileNotification::activate( const OFileNotificationEvent* e )
case Unmount: emit unmounted( _path ); break;
+ case _QueueOverflow: qFatal( "OFileNotification::activate() - Inotify Event Queue Overload!" ); break;
+ case _Ignored: qWarning( "OFileNotification::activate() - Further Events for '%s' will be ignored", (const char*) _path ); break;
default: assert( 0 );
@@ -264,2 +268,4 @@ bool OFileNotification::activate( const OFileNotificationEvent* e )
+ delete e;
+
if ( !_multi ) stop();
@@ -319,3 +325,3 @@ bool OFileNotification::registerEventHandler()
- OFileNotification::_sn = new QSocketNotifier( _fd, QSocketNotifier::Read, this, "inotify event" );
+ OFileNotification::_sn = new QSocketNotifier( _fd, QSocketNotifier::Read );
connect( OFileNotification::_sn, SIGNAL( activated(int) ), this, SLOT( inotifyEventHandler() ) );
@@ -350,3 +356,3 @@ ODirNotification::~ODirNotification()
-/*
+/**
Love-Trowbridge recursive directory scanning algorithm:
@@ -367,3 +373,3 @@ ODirNotification::~ODirNotification()
not yet created on bar, repeat step 1 on bar.
-*/
+**/