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:10 +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 596fd7dfbee9f566e76a9ed11adb00d744caa7e8..a464e88bfee2143e429273c646adabbf8aaa61bb 100644 (file)
@@ -630,13 +630,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.026199 seconds and 4 git commands to generate.