Mercurial > dovecot > original-hg > dovecot-1.2
diff src/master/login-process.c @ 8088:14a061acbb7b HEAD
Master process leaked one fd to login process. Typically it was listener fd,
which caused imap-login processes existing after Dovecot was killed to
keep the port reserved so Dovecot couldn't be started again.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 12 Aug 2008 17:27:26 -0400 |
parents | 138a64b6dffe |
children | 29b623366e1e |
line wrap: on
line diff
--- a/src/master/login-process.c Tue Aug 12 15:37:59 2008 -0400 +++ b/src/master/login-process.c Tue Aug 12 17:27:26 2008 -0400 @@ -691,7 +691,7 @@ i_fatal("Failed to dup2() fds"); /* don't close any of these */ - for (tmp_fd = 0; tmp_fd <= cur_fd; tmp_fd++) + for (tmp_fd = 0; tmp_fd < cur_fd; tmp_fd++) fd_close_on_exec(tmp_fd, FALSE); (void)close(fd[0]);