summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-06 15:05:59 +0200
committerVolker Lendecke <vlendec@samba.org>2010-10-06 13:57:30 +0000
commit342c79e26544ee5345a9d54f68f774d7ce07e530 (patch)
treead6ca36b8d8cbe79fb883394d34b743cc5d28bb3 /source3
parent312d0977a2bd7f3eccff91e6c246a68814a33991 (diff)
downloadsamba-342c79e26544ee5345a9d54f68f774d7ce07e530.tar.gz
samba-342c79e26544ee5345a9d54f68f774d7ce07e530.tar.bz2
samba-342c79e26544ee5345a9d54f68f774d7ce07e530.zip
s3: Make the write end of the echo responder pipe non-blocking
Without this, we can get a writable pipe end, but the writev call on the pipe will block. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 6 13:57:30 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 8d36dd3c89..07fa67477d 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -2839,6 +2839,7 @@ static bool fork_echo_handler(struct smbd_server_connection *sconn)
NTSTATUS status;
close(listener_pipe[0]);
+ set_blocking(listener_pipe[1], false);
status = reinit_after_fork(sconn->msg_ctx,
smbd_event_context(),