dovecot: Don't crash when removing kqueue notify.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 21 15:28:57 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/fd01ec16611f
changeset: 6588:fd01ec16611f
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 21 15:28:53 2007 +0300
description:
Don't crash when removing kqueue notify.
diffstat:
1 file changed, 1 insertion(+)
src/lib/ioloop-notify-kqueue.c | 1 +
diffs (11 lines):
diff -r 06e3cff76570 -r fd01ec16611f src/lib/ioloop-notify-kqueue.c
--- a/src/lib/ioloop-notify-kqueue.c Sun Oct 21 15:28:40 2007 +0300
+++ b/src/lib/ioloop-notify-kqueue.c Sun Oct 21 15:28:53 2007 +0300
@@ -125,6 +125,7 @@ enum io_notify_result io_add_notify(cons
fd_close_on_exec(fd, TRUE);
io = i_new(struct io_notify, 1);
+ io->io.condition = IO_NOTIFY;
io->io.callback = callback;
io->io.context = context;
io->refcount = 1;
More information about the dovecot-cvs
mailing list