changeset 9462:673a017081af HEAD

rawlog: Make also created socketpair fds nonblocking.
author Timo Sirainen <tss@iki.fi>
date Fri, 30 Oct 2009 15:06:46 -0400
parents b7ed70a0192b
children 0dc82e18530d
files src/util/rawlog.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
 	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)