X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libustcomm%2Fustcomm.c;h=2e490b56b7f3b9bde99a3db8ade8b66f99f090da;hp=8b459df32975499a4c1137ee379fb9d40600b231;hb=68ab7a5d576faa16e0da19d0f824785eac215ae9;hpb=e7465adb1683ce0201f7e029efb48c7fac2b7b63 diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index 8b459df..2e490b5 100644 --- a/libustcomm/ustcomm.c +++ b/libustcomm/ustcomm.c @@ -406,7 +406,7 @@ int ustcomm_send_request(struct ustcomm_connection *conn, const char *req, char result = send(conn->fd, req, strlen(req), MSG_NOSIGNAL); if(result == -1) { - if(errno != ECONNRESET) + if(errno != EPIPE) PERROR("send"); return -1; } @@ -506,7 +506,7 @@ int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle) handle->server.listen_fd = init_named_socket(name, &(handle->server.socketpath)); if(handle->server.listen_fd < 0) { - ERR("error initializing named socket"); + ERR("Error initializing named socket (%s). Check that directory exists and that it is writable.", name); goto free_name; } free(name);