X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-comm%2Flttng-ust-comm.c;h=4ed9cc6edc8931061e2cc52fa97964f6bb4d7969;hb=b2a050e0f805d45fd05315b63a6a344c8588cbad;hp=92d86d4ecbfb0c2309a7126366ae5da6fdd7272b;hpb=747ecf43b52df79b34faa2bd4eaf6e5150b49b56;p=lttng-ust.git diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index 92d86d4e..4ed9cc6e 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -438,8 +438,6 @@ ssize_t ustcomm_send_fds_unix_sock(int sock, int *fds, size_t nb_fd) /* * Recv a message accompanied by fd(s) from a unix socket. * - * Returns the size of received data, or negative error value. - * * Expect at most "nb_fd" file descriptors. Returns the number of fd * actually received in nb_fd. * Returns -EPIPE on orderly shutdown. @@ -509,7 +507,7 @@ ssize_t ustcomm_recv_fds_unix_sock(int sock, int *fds, size_t nb_fd) goto end; } memcpy(fds, CMSG_DATA(cmsg), sizeof_fds); - ret = sizeof_fds; + ret = nb_fd; end: return ret; }