From 63375ccec438f16d32a9bf22f409294d4518f770 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 18 Sep 2012 00:52:10 -0400 Subject: [PATCH] Fix: get_wait_shm() ust mutex deadlock (add 2 missing exit calls) Reported-by: changz Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-comm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1