From b9a468dc97d1bee2c7f6cba1d3fe243c72624a6c Mon Sep 17 00:00:00 2001 From: fortrue Date: Fri, 19 Jan 2018 16:43:28 +0800 Subject: [PATCH] fix backtrace bug --- src/Proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Proxy.cpp b/src/Proxy.cpp index bf1a010..c260565 100644 --- a/src/Proxy.cpp +++ b/src/Proxy.cpp @@ -26,10 +26,10 @@ static bool Stop = false; static void abortHandler(int sig) { - Abort = true; - if (sig == SIGABRT) { + if (!Abort) { traceInfo(); } + Abort = true; if (!Running) { abort(); }