summaryrefslogtreecommitdiff
path: root/jackd
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-25 23:35:13 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-25 23:35:13 -0400
commit6d94a80c431b7f6bfc7fcef1b531a51d91359bf2 (patch)
treea4def02c2cefc63016c616300e74a9823dc25607 /jackd
parent88198692bf11c2b3e55b29ba445c9dc1c4956875 (diff)
downloadjack1-6d94a80c431b7f6bfc7fcef1b531a51d91359bf2.tar.gz
fix display of new client UUID in verbose mode, and add errno if initial client read(2) fails
Diffstat (limited to 'jackd')
-rw-r--r--jackd/clientengine.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/jackd/clientengine.c b/jackd/clientengine.c
index 45c9f4d..311f4e3 100644
--- a/jackd/clientengine.c
+++ b/jackd/clientengine.c
@@ -702,7 +702,7 @@ setup_client (jack_engine_t *engine, ClientType type, char *name,
jack_uuid_unparse (client->control->uuid, bufx);
- VERBOSE (engine, "new client: %s, id = %" PRIu32
+ VERBOSE (engine, "new client: %s, uuid = %s"
" type %d @ %p fd = %d",
client->control->name, bufx,
type, client->control, client_fd);
@@ -841,12 +841,12 @@ jack_client_create (jack_engine_t *engine, int client_fd)
VALGRIND_MEMSET(&res, 0, sizeof (res));
- nbytes = read (client_fd, &req, sizeof (req));
-
- if (nbytes == 0) { /* EOF? */
- jack_error ("cannot read connection request from client");
- return -1;
- }
+ nbytes = read (client_fd, &req, sizeof (req));
+
+ if (nbytes == 0) { /* EOF? */
+ jack_error ("cannot read connection request from client (%s)", strerror(errno));
+ return -1;
+ }
/* First verify protocol version (first field of request), if
* present, then make sure request has the expected length. */