Fix: get_wait_shm() ust mutex deadlock (add 2 missing exit calls)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Sep 2012 04:52:10 +0000 (00:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Sep 2012 04:52:54 +0000 (00:52 -0400)
Reported-by: changz <zheng.chang@emc.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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.025824 seconds and 4 git commands to generate.