projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update README
[lttng-ust.git]
/
libustcomm
/
ustcomm.c
diff --git
a/libustcomm/ustcomm.c
b/libustcomm/ustcomm.c
index 8b459df32975499a4c1137ee379fb9d40600b231..6044c271fa7101d585261d44b1c24f401dfd2ef4 100644
(file)
--- a/
libustcomm/ustcomm.c
+++ b/
libustcomm/ustcomm.c
@@
-89,7
+89,7
@@
static int send_message_fd(int fd, const char *msg)
{
int result;
{
int result;
- result = send(fd, msg, strlen(msg),
0
);
+ result = send(fd, msg, strlen(msg),
MSG_NOSIGNAL
);
if(result == -1) {
PERROR("send");
return -1;
if(result == -1) {
PERROR("send");
return -1;
@@
-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) {
result = send(conn->fd, req, strlen(req), MSG_NOSIGNAL);
if(result == -1) {
- if(errno != E
CONNRESET
)
+ if(errno != E
PIPE
)
PERROR("send");
return -1;
}
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) {
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);
goto free_name;
}
free(name);
This page took
0.024908 seconds
and
4
git commands to generate.