dovecot-1.2: rawlog: Make also created socketpair fds nonblocking.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Oct 30 21:06:50 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/673a017081af
changeset: 9462:673a017081af
user: Timo Sirainen <tss at iki.fi>
date: Fri Oct 30 15:06:46 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 b7ed70a0192b -r 673a017081af src/util/rawlog.c
--- a/src/util/rawlog.c Fri Oct 30 14:54:18 2009 -0400
+++ b/src/util/rawlog.c Fri Oct 30 15:06:46 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