mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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
This commit is contained in:
parent
312d0977a2
commit
342c79e265
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user