X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-comm%2Flttng-ust-comm.c;h=b90f5fe7baa0f64f8374bed6e367d96939baa312;hb=e6973a8909554c1b1d812f4f07d8806b87cad394;hp=0781f4cecb4408f0746d8e1f3586f740d09aae4a;hpb=45d35b9f4e7d0d88f75238ba8a526cb7ea1a66d4;p=lttng-ust.git diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index 0781f4ce..b90f5fe7 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -301,10 +301,9 @@ int ustcomm_close_unix_sock(int sock) { int ret; - /* Shutdown receptions and transmissions */ - ret = shutdown(sock, SHUT_RDWR); + ret = close(sock); if (ret < 0) { - perror("shutdown"); + perror("close"); } return ret;