From: Volker Lendecke Date: Wed, 6 Oct 2010 13:05:59 +0000 (+0200) Subject: s3: Make the write end of the echo responder pipe non-blocking X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=342c79e26544ee5345a9d54f68f774d7ce07e530;p=abartlet%2Fsamba.git%2F.git 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 Autobuild-Date: Wed Oct 6 13:57:30 UTC 2010 on sn-devel-104 --- diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 8d36dd3c89f..07fa67477d9 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(),