From e3aa5a62f28dd9ff4ace599ef9764ba76f12a65e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 6 Oct 2010 15:05:59 +0200 Subject: [PATCH] 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. --- source3/smbd/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 7fea339422..36f31dfed6 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2493,6 +2493,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(smbd_messaging_context(), smbd_event_context(), false); -- 2.34.1