X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fconsumer.c;h=8f05476a7fe606935d8f3fcca23d75b2e945bb43;hp=d79dee3cafd99c1232f2458a985561fb0e7a1875;hb=92db7cdc97f4bb5776fa698442d8af4e5c1e3bf3;hpb=9363801e2d2069022a05e67066d8f527538946d0 diff --git a/src/bin/lttng-sessiond/consumer.c b/src/bin/lttng-sessiond/consumer.c index d79dee3ca..8f05476a7 100644 --- a/src/bin/lttng-sessiond/consumer.c +++ b/src/bin/lttng-sessiond/consumer.c @@ -62,8 +62,8 @@ int consumer_socket_send(struct consumer_socket *socket, void *msg, size_t len) /* The above call will print a PERROR on error. */ DBG("Error when sending data to consumer on sock %d", fd); /* - * At this point, the socket is not usable anymore thus flagging it - * invalid and closing it. + * At this point, the socket is not usable anymore thus closing it and + * setting the file descriptor to -1 so it is not reused. */ /* This call will PERROR on error. */ @@ -106,8 +106,8 @@ int consumer_socket_recv(struct consumer_socket *socket, void *msg, size_t len) /* The above call will print a PERROR on error. */ DBG("Error when receiving data from the consumer socket %d", fd); /* - * At this point, the socket is not usable anymore thus flagging it - * invalid and closing it. + * At this point, the socket is not usable anymore thus closing it and + * setting the file descriptor to -1 so it is not reused. */ /* This call will PERROR on error. */