[Dovecot] 1.2.beta4: Fatal: io_loop_handle_add: epoll_ctl(1, 11): Bad file descriptor

e-frog e-frog at gmx.de
Fri Mar 27 20:17:42 EET 2009


Whenever dovecot is stopped while a dict process is running I see

  Fatal: io_loop_handle_add: epoll_ctl(1, 11): Bad file descriptor

in the error log.

The following patch fixes this for me. I'm sure there is a better way though.




--- dovecot-1.2.beta4/src/master/dict-process.c.orig	2009-03-27 16:44:59.000000000 +0100
+++ dovecot-1.2.beta4/src/master/dict-process.c	2009-03-27 18:59:24.000000000 +0100
@@ -209,11 +209,6 @@ dict_process_destroyed(struct child_proc
 	struct dict_listener *listener = process->listener;

 	dict_process_deinit(process);
-	if (listener->processes == NULL) {
-		/* last listener died, create new ones */
-		listener->io = io_add(listener->fd, IO_READ,
-				      dict_listener_input, listener);
-	}
 }

 void dict_processes_init(void)


More information about the dovecot mailing list