changeset 6588:fd01ec16611f HEAD

Don't crash when removing kqueue notify.
author Timo Sirainen <tss@iki.fi>
date Sun, 21 Oct 2007 15:28:53 +0300
parents 06e3cff76570
children 0e46072f797a
files src/lib/ioloop-notify-kqueue.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	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;