Fix: get_wait_shm() ust mutex deadlock (add 2 missing exit calls)
[lttng-ust.git] / liblttng-ust / lttng-ust-comm.c
index 51eb75b55ab873795356fef5543839c5f44e755f..16a634069a0beb1d33616860128449c95e0d1923 100644 (file)
@@ -549,13 +549,13 @@ int get_wait_shm(struct sock_info *sock_info, size_t mmap_size)
                 */
                if (!sock_info->global && errno != EACCES) {
                        ERR("Error opening shm %s", sock_info->wait_shm_path);
-                       exit(EXIT_FAILURE);
+                       _exit(EXIT_FAILURE);
                }
                /*
                 * The shm exists, but we cannot open it RW. Report
                 * success.
                 */
-               exit(EXIT_SUCCESS);
+               _exit(EXIT_SUCCESS);
        } else {
                return -1;
        }
This page took 0.02369 seconds and 4 git commands to generate.