X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-comm%2Flttng-ust-comm.c;h=5b9cb85381fcb815998c7ecaa733a52a7d2a31e7;hb=6b32a5c3984c2f26d78a6776c093d4f0924e05fc;hp=9f2bdd5b3f80b650c04bbb6cb5ff37af74317880;hpb=20d1999d42392063fd530d1f6c00b93c25d178d6;p=lttng-ust.git diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index 9f2bdd5b..5b9cb853 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -439,8 +439,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. @@ -510,7 +508,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; }