ioloop-notify-inotify.c revision 0536ccb51d41e3078c3a9fa33e509fb4b2420f95
e554622c1927eb3332500c962f46cba77e8c94a5Timo Sirainen/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file */
struct ioloop_notify_handler_context {
int inotify_fd;
bool disabled;
if (ret <= 0) {
return FALSE;
int wd;
return IO_NOTIFY_NOSUPPORT;
if (wd < 0) {
return IO_NOTIFY_NOTFOUND;
"/proc/sys/fs/inotify/max_user_watches");
return IO_NOTIFY_NOSUPPORT;
return IO_NOTIFY_ADDED;
static void ioloop_inotify_user_limit_exceeded(void)
const char *name;
return ctx;