dovecot: Don't prevent io_add_notify() from listening for files,...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 9 06:44:49 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/9160d4bd8c0b
changeset: 5935:9160d4bd8c0b
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 09 06:44:44 2007 +0300
description:
Don't prevent io_add_notify() from listening for files, since kqueue
supports it.
diffstat:
1 file changed, 11 deletions(-)
src/lib/ioloop-notify-kqueue.c | 11 -----------
diffs (28 lines):
diff -r 181aa61c182a -r 9160d4bd8c0b src/lib/ioloop-notify-kqueue.c
--- a/src/lib/ioloop-notify-kqueue.c Mon Jul 09 05:47:48 2007 +0300
+++ b/src/lib/ioloop-notify-kqueue.c Mon Jul 09 06:44:44 2007 +0300
@@ -113,7 +113,6 @@ struct io *io_add_notify(const char *pat
struct kevent ev;
struct io_notify *io;
int fd;
- struct stat sb;
if (ctx == NULL)
ctx = io_loop_notify_handler_init();
@@ -122,16 +121,6 @@ struct io *io_add_notify(const char *pat
if (fd == -1) {
if (errno != ENOENT)
i_error("open(%s) for kq notify failed: %m", path);
- return NULL;
- }
-
- if (fstat(fd, &sb) < 0) {
- i_error("fstat(%d, %s) for kq notify failed: %m", fd, path);
- (void)close(fd);
- return NULL;
- }
- if (!S_ISDIR(sb.st_mode)) {
- (void)close(fd);
return NULL;
}
fd_close_on_exec(fd, TRUE);
More information about the dovecot-cvs
mailing list