[dovecot-cvs] dovecot/src/lib ioloop-epoll.c,1.8,1.9
cras at dovecot.org
cras at dovecot.org
Thu Oct 27 18:22:31 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv22585
Modified Files:
ioloop-epoll.c
Log Message:
And even more log verbosity
Index: ioloop-epoll.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-epoll.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- ioloop-epoll.c 27 Oct 2005 14:59:27 -0000 1.8
+++ ioloop-epoll.c 27 Oct 2005 15:22:28 -0000 1.9
@@ -164,7 +164,7 @@
ret = epoll_ctl(ctx->epfd, op, fd, &event);
if (ret < 0)
- i_fatal("epoll_ctl(%d): %m", op);
+ i_fatal("io_loop_handle_add: epoll_ctl(%d, %d): %m", op, fd);
if (ctx->events_pos >= ctx->events_size) {
ctx->events_size = nearest_power(ctx->events_size + 1);
@@ -193,8 +193,10 @@
op = last ? EPOLL_CTL_DEL : EPOLL_CTL_MOD;
ret = epoll_ctl(ctx->epfd, op, io->fd, &event);
- if (ret < 0 && errno != EBADF)
- i_fatal("epoll_ctl(%d): %m", op);
+ if (ret < 0 && errno != EBADF) {
+ i_fatal("io_loop_handle_remove: epoll_ctl(%d, %d): %m",
+ op, io->fd);
+ }
ctx->events_pos--;
}
More information about the dovecot-cvs
mailing list