fix: ustcomm_close_unix_sock should close, not shutdown
[lttng-ust.git] / liblttng-ust-comm / lttng-ust-comm.c
index 0781f4cecb4408f0746d8e1f3586f740d09aae4a..b90f5fe7baa0f64f8374bed6e367d96939baa312 100644 (file)
@@ -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;
This page took 0.023249 seconds and 4 git commands to generate.