s3:winbind Make the normal client exit message a bit more understandable
authorVolker Lendecke <vl@samba.org>
Sat, 26 Dec 2009 17:00:32 +0000 (18:00 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 26 Dec 2009 17:01:15 +0000 (18:01 +0100)
source3/winbindd/winbindd.c

index e31103a9411d01eaafbcf0494740081cfa865b9c..f6f4a8fee78c9f641a404f96922258bd1dd71403 100644 (file)
@@ -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;
        }