[dovecot-cvs] dovecot/src/lib ioloop-epoll.c,1.1,1.2
cras at dovecot.org
cras at dovecot.org
Thu Oct 7 22:38:07 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv12515/src/lib
Modified Files:
ioloop-epoll.c
Log Message:
Missing error checking in epoll_create(). Patch by Andrey Panin
Index: ioloop-epoll.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-epoll.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ioloop-epoll.c 5 Sep 2004 22:07:26 -0000 1.1
+++ ioloop-epoll.c 7 Oct 2004 19:38:05 -0000 1.2
@@ -57,6 +57,8 @@
data->fd_index = p_new(ioloop->pool, struct io_list *, data->idx_size);
data->epfd = epoll_create(INITIAL_EPOLL_EVENTS);
+ if (data->epfd < 0)
+ i_panic("epoll_create(): %m");
}
void io_loop_handler_deinit(struct ioloop *ioloop)
More information about the dovecot-cvs
mailing list