X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libustcomm%2Fustcomm.c;h=4fe46c537d880d7f9cb27dd13d73c1a660343a3e;hb=3a7b90de71f2a82f73f06fb14a7b77805aea1064;hp=2b08b310b826b0de71c3a1b42d8bd6ac289e747b;hpb=46ef48cdf8b64608a4f679500bc34293b9f0b649;p=lttng-ust.git diff --git a/libustcomm/ustcomm.c b/libustcomm/ustcomm.c index 2b08b310..4fe46c53 100644 --- a/libustcomm/ustcomm.c +++ b/libustcomm/ustcomm.c @@ -201,7 +201,7 @@ int ustcomm_send_reply(struct ustcomm_server *server, char *msg, struct ustcomm_ int result; result = send_message_fd(src->fd, msg, NULL); - if(result) { + if(result < 0) { ERR("error in send_message_fd"); return -1; }