From 00b62c64f33a5fc2cd5170b31324fb0d2e1cdf7b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 26 Dec 2009 18:00:32 +0100 Subject: [PATCH] s3:winbind Make the normal client exit message a bit more understandable --- source3/winbindd/winbindd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index e31103a9411..f6f4a8fee78 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -798,10 +798,15 @@ static void winbind_client_request_read(struct tevent_req *req) ret = wb_req_read_recv(req, state, &state->request, &err); TALLOC_FREE(req); if (ret == -1) { + if (err == EPIPE) { + DEBUG(6, ("closing socket %d, client exited\n", + state->sock)); + } else { + DEBUG(2, ("Could not read client request from fd %d: " + "%s\n", state->sock, strerror(err))); + } close(state->sock); state->sock = -1; - DEBUG(2, ("Could not read client request: %s\n", - strerror(err))); remove_client(state); return; } -- 2.34.1