changeset 10239:83464a815f46 HEAD

rawlog: Make also created socketpair fds nonblocking.
author Timo Sirainen <tss@iki.fi>
date Fri, 30 Oct 2009 15:06:38 -0400
parents 4ba2db4794ab
children dfbdb1e8deb6
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:02 2009 -0400
+++ b/src/util/rawlog.c	Fri Oct 30 15:06:38 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)