diff options
author | David Teigland <teigland@redhat.com> | 2016-08-19 10:59:46 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2016-08-19 10:59:46 -0500 |
commit | bf0eaafa6b81a271d40031b337c614bb9b56159a (patch) | |
tree | b3c7ca60d5028b1f71cb876e29abab5910b4b8d8 /libdaemon | |
parent | e192fde6878a0e32316125b2e4c9813f4a95bede (diff) | |
download | lvm2-bf0eaafa6b81a271d40031b337c614bb9b56159a.tar.gz |
libdaemon: add errno to error message
Diffstat (limited to 'libdaemon')
-rw-r--r-- | libdaemon/server/daemon-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |