summaryrefslogtreecommitdiff
path: root/server/nss/nsssrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/nss/nsssrv.c')
-rw-r--r--server/nss/nsssrv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/nss/nsssrv.c b/server/nss/nsssrv.c
index 176da520..5ade80ec 100644
--- a/server/nss/nsssrv.c
+++ b/server/nss/nsssrv.c
@@ -27,6 +27,7 @@
#include <sys/un.h>
#include <string.h>
#include <sys/time.h>
+#include <errno.h>
#include "talloc.h"
#include "events.h"
#include "util/util.h"
@@ -167,7 +168,7 @@ static void accept_fd_handler(struct event_context *ev,
len = sizeof(cctx->addr);
cctx->cfd = accept(nctx->lfd, (struct sockaddr *)&cctx->addr, &len);
if (cctx->cfd == -1) {
- DEBUG(1, ("Accept failed [%s]", strerror(errno)));
+ DEBUG(0, ("Accept failed [%s]", strerror(errno)));
talloc_free(cctx);
return;
}
@@ -177,11 +178,13 @@ static void accept_fd_handler(struct event_context *ev,
if (!cctx->cfde) {
close(cctx->cfd);
talloc_free(cctx);
- DEBUG(1, ("Failed to queue client handler\n"));
+ DEBUG(0, ("Failed to queue client handler\n"));
}
talloc_set_destructor(cctx, client_destructor);
+ DEBUG(2, ("Client connected!\n"));
+
return;
}