From: Mathieu Desnoyers Date: Tue, 18 Sep 2012 04:52:10 +0000 (-0400) Subject: Fix: get_wait_shm() ust mutex deadlock (add 2 missing exit calls) X-Git-Tag: v2.1.0-rc2~42 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5d3bc5ed74a4c9f557a75d7de82ed7056adb812e;p=lttng-ust.git Fix: get_wait_shm() ust mutex deadlock (add 2 missing exit calls) Reported-by: changz Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 596fd7df..a464e88b 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -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; }