projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix I/O-related error values in ustctl
[lttng-ust.git]
/
liblttng-ust-comm
/
lttng-ust-comm.c
diff --git
a/liblttng-ust-comm/lttng-ust-comm.c
b/liblttng-ust-comm/lttng-ust-comm.c
index 9a67ea19ea7aef43d80e4558dfeeae4162b42616..db9910ded9c3fcf2a660fa77c5a35851df07fdc8 100644
(file)
--- a/
liblttng-ust-comm/lttng-ust-comm.c
+++ b/
liblttng-ust-comm/lttng-ust-comm.c
@@
-435,7
+435,10
@@
int ustcomm_send_app_cmd(int sock,
ret = ustcomm_send_app_msg(sock, lum);
if (ret)
return ret;
- return ustcomm_recv_app_reply(sock, lur, lum->handle, lum->cmd);
+ ret = ustcomm_recv_app_reply(sock, lur, lum->handle, lum->cmd);
+ if (ret > 0)
+ return -EIO;
+ return ret;
}
/*
This page took
0.025587 seconds
and
5
git commands to generate.