From 6f7ae4770ac5e7147d2d25d75f18d4cca3f4d935 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 20 Mar 2010 21:43:01 +0000 Subject: [PATCH] Properly raise SIGSEGV/SIGABRT after catching it --- src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9e5064633..622ef3dfe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -141,8 +141,7 @@ void sigsegvHandler(int) { std::cerr << "\n\n*************************************************************\n"; std::cerr << "Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n"; print_stacktrace(); - std::raise(SIGINT); - std::abort(); + std::raise(SIGSEGV); } void sigabrtHandler(int) { signal(SIGABRT, 0); @@ -150,8 +149,7 @@ void sigabrtHandler(int) { std::cerr << "\n\n*************************************************************\n"; std::cerr << "Catching SIGABRT, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n"; print_stacktrace(); - std::raise(SIGINT); - std::abort(); + std::raise(SIGABRT); } #endif