diff --git a/src/event/InotifyEvent.hxx b/src/event/InotifyEvent.hxx index ee1354957..79eeae52b 100644 --- a/src/event/InotifyEvent.hxx +++ b/src/event/InotifyEvent.hxx @@ -51,6 +51,13 @@ public: return event.GetEventLoop(); } + /** + * Is the inotify file descriptor still open? + */ + bool IsDefined() const noexcept { + return event.IsDefined(); + } + /** * Re-enable polling the inotify file descriptor after it was * disabled by Disable().