Skip to content

Commit

Permalink
lib: If epoll_ctl() fails, panic instead of just fatal.
Browse files Browse the repository at this point in the history
This makes it easier to fix such bugs.
  • Loading branch information
sirainen committed May 19, 2016
1 parent e17d7f4 commit 94e8a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ioloop-epoll.c
Expand Up @@ -105,7 +105,7 @@ void io_loop_handle_add(struct io_file *io)

if (epoll_ctl(ctx->epfd, op, io->fd, &event) < 0) {
if (errno == EPERM && op == EPOLL_CTL_ADD) {
i_fatal("epoll_ctl(add, %d) failed: %m "
i_panic("epoll_ctl(add, %d) failed: %m "
"(fd doesn't support epoll%s)", io->fd,
io->fd != STDIN_FILENO ? "" :
" - instead of '<file', try 'cat file|'");
Expand Down

0 comments on commit 94e8a82

Please sign in to comment.