diff src/lib/ioloop.h @ 7457:940641318f12 HEAD

Renamed IO_NOTIFY_DISABLED to IO_NOTIFY_NOSUPPORT. IO_NOTIFY_NOSUPPORT is now also given by dnotify when trying to listen for files. Fixes busy looping with dnotify when waiting for dotlock to get deleted.
author Timo Sirainen <tss@iki.fi>
date Thu, 24 Apr 2008 16:59:19 +0300
parents becdf2eacdce
children 83aef3a6c0a3
line wrap: on
line diff
--- a/src/lib/ioloop.h	Thu Apr 24 16:56:10 2008 +0300
+++ b/src/lib/ioloop.h	Thu Apr 24 16:59:19 2008 +0300
@@ -20,9 +20,13 @@
 };
 
 enum io_notify_result {
+	/* Notify added successfully */
 	IO_NOTIFY_ADDED,
+	/* Specified file doesn't exist, can't wait on it */
 	IO_NOTIFY_NOTFOUND,
-	IO_NOTIFY_DISABLED
+	/* Can't add notify for specified file. Main reasons for this:
+	   a) No notify support at all, b) Only directory notifies supported */
+	IO_NOTIFY_NOSUPPORT
 };
 
 typedef void io_callback_t(void *context);