1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdaemon: add errno to error message

This commit is contained in:
David Teigland 2016-08-19 10:59:46 -05:00
parent e192fde687
commit bf0eaafa6b

View File

@ -491,7 +491,7 @@ static int handle_connect(daemon_state s)
client.socket_fd = accept(s.socket_fd, (struct sockaddr *) &sockaddr, &sl); client.socket_fd = accept(s.socket_fd, (struct sockaddr *) &sockaddr, &sl);
if (client.socket_fd < 0) { if (client.socket_fd < 0) {
ERROR(&s, "Failed to accept connection."); ERROR(&s, "Failed to accept connection errno %d.", errno);
return 0; return 0;
} }
@ -513,7 +513,7 @@ static int handle_connect(daemon_state s)
ts->client = client; ts->client = client;
if (pthread_create(&ts->client.thread_id, NULL, _client_thread, ts)) { 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; return 0;
} }