improve error handling
[ust.git] / libustcomm / ustcomm.c
index 8b459df32975499a4c1137ee379fb9d40600b231..2e490b56b7f3b9bde99a3db8ade8b66f99f090da 100644 (file)
@@ -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);
This page took 0.021889 seconds and 4 git commands to generate.