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.0.6~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=63375ccec438f16d32a9bf22f409294d4518f770;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 51eb75b5..16a63406 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -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; }