fix: ustcomm_close_unix_sock should close, not shutdown
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index e19fa949cbf69fd8cf70006898e8ddaa1796ca97..e3afe6af562cb8a22207ca90210b3450b8d2453d 100644 (file)
@@ -396,7 +396,7 @@ void cleanup_sock_info(struct sock_info *sock_info, int exiting)
        int ret;
 
        if (sock_info->socket != -1) {
-               ret = close(sock_info->socket);
+               ret = ustcomm_close_unix_sock(sock_info->socket);
                if (ret) {
                        ERR("Error closing apps socket");
                }
@@ -676,7 +676,7 @@ restart:
        }
 
        if (sock_info->socket != -1) {
-               ret = close(sock_info->socket);
+               ret = ustcomm_close_unix_sock(sock_info->socket);
                if (ret) {
                        ERR("Error closing %s apps socket", sock_info->name);
                }
This page took 0.024284 seconds and 4 git commands to generate.