dovecot-2.0-sslstream: rawlog: Make also created socketpair fds ...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:56 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/83464a815f46
changeset: 10240:83464a815f46
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 30 15:06:38 2009 -0400
description:
rawlog: Make also created socketpair fds nonblocking.

diffstat:

1 file changed, 2 insertions(+)
src/util/rawlog.c |    2 ++

diffs (12 lines):

diff -r 4ba2db4794ab -r 83464a815f46 src/util/rawlog.c
--- a/src/util/rawlog.c	Fri Oct 30 14:54:02 2009 -0400
+++ b/src/util/rawlog.c	Fri Oct 30 15:06:38 2009 -0400
@@ -312,6 +312,8 @@ static void rawlog_open(enum rawlog_flag
 
 	if (socketpair(AF_UNIX, SOCK_STREAM, 0, sfd) < 0)
 		i_fatal("socketpair() failed: %m");
+	fd_set_nonblock(sfd[0], TRUE);
+	fd_set_nonblock(sfd[1], TRUE);
 
 	pid = fork();
 	if (pid < 0)


More information about the dovecot-cvs mailing list