mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-23 01:36:15 +03:00
Properly raise SIGSEGV/SIGABRT after catching it
This commit is contained in:
parent
5aa348a574
commit
6f7ae4770a
1 changed files with 2 additions and 4 deletions
|
@ -141,8 +141,7 @@ void sigsegvHandler(int) {
|
||||||
std::cerr << "\n\n*************************************************************\n";
|
std::cerr << "\n\n*************************************************************\n";
|
||||||
std::cerr << "Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
std::cerr << "Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
||||||
print_stacktrace();
|
print_stacktrace();
|
||||||
std::raise(SIGINT);
|
std::raise(SIGSEGV);
|
||||||
std::abort();
|
|
||||||
}
|
}
|
||||||
void sigabrtHandler(int) {
|
void sigabrtHandler(int) {
|
||||||
signal(SIGABRT, 0);
|
signal(SIGABRT, 0);
|
||||||
|
@ -150,8 +149,7 @@ void sigabrtHandler(int) {
|
||||||
std::cerr << "\n\n*************************************************************\n";
|
std::cerr << "\n\n*************************************************************\n";
|
||||||
std::cerr << "Catching SIGABRT, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
std::cerr << "Catching SIGABRT, please report a bug at http://bug.qbittorrent.org\nand provide the following backtrace:\n";
|
||||||
print_stacktrace();
|
print_stacktrace();
|
||||||
std::raise(SIGINT);
|
std::raise(SIGABRT);
|
||||||
std::abort();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue