Fix: abort on decrement_sem_count during concurrent tracing start and teardown
[lttng-ust.git] / src / lib / lttng-ust / lttng-ust-comm.c
index b1c35480e88c10f2c316d245256f00f52838f829..25d79d9f4dce4fc7f3f4518e796e270fa8fcf78a 100644 (file)
@@ -1459,8 +1459,7 @@ void cleanup_sock_info(struct sock_info *sock_info, int exiting)
                }
                sock_info->root_handle = -1;
        }
-       sock_info->registration_done = 0;
-       sock_info->initial_statedump_done = 0;
+
 
        /*
         * wait_shm_mmap, socket and notify socket are used by listener
@@ -1472,6 +1471,9 @@ void cleanup_sock_info(struct sock_info *sock_info, int exiting)
        if (exiting)
                return;
 
+       sock_info->registration_done = 0;
+       sock_info->initial_statedump_done = 0;
+
        if (sock_info->socket != -1) {
                ret = ustcomm_close_unix_sock(sock_info->socket);
                if (ret) {
This page took 0.023791 seconds and 4 git commands to generate.