diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c index 4d6546633..0e37dfbf9 100644 --- a/libdaemon/server/daemon-server.c +++ b/libdaemon/server/daemon-server.c @@ -491,7 +491,7 @@ static int handle_connect(daemon_state s) client.socket_fd = accept(s.socket_fd, (struct sockaddr *) &sockaddr, &sl); if (client.socket_fd < 0) { - ERROR(&s, "Failed to accept connection."); + ERROR(&s, "Failed to accept connection errno %d.", errno); return 0; } @@ -513,7 +513,7 @@ static int handle_connect(daemon_state s) ts->client = client; if (pthread_create(&ts->client.thread_id, NULL, _client_thread, ts)) { - ERROR(&s, "Failed to create client thread."); + ERROR(&s, "Failed to create client thread errno %d.", errno); return 0; }