From a8e02b591b0c82c1f75f4f51bc683d9775f13d54 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 23 May 2009 16:10:54 +0200 Subject: Add "err_on_readability" to writev_send A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability. --- source3/rpc_server/srv_pipe_hnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index f2441619ac..a17adfb7a0 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -1221,7 +1221,7 @@ struct tevent_req *np_write_send(TALLOC_CTX *mem_ctx, struct event_context *ev, state->iov.iov_len = len; subreq = writev_send(state, ev, p->write_queue, p->fd, - &state->iov, 1); + false, &state->iov, 1); if (subreq == NULL) { goto fail; } -- cgit