- Fix defining a new label from torrent addition dialog

- Stop catching SIGABRT, SIGSEGV once one is received to avoid possible infinite loop
This commit is contained in:
Christophe Dumez 2010-01-03 14:38:59 +00:00
parent 824b2f6fff
commit 8f4bf93f02
4 changed files with 12 additions and 1 deletions

View file

@ -101,6 +101,8 @@ void sigtermHandler(int) {
app->exit();
}
void sigsegvHandler(int) {
signal(SIGABRT, 0);
signal(SIGTERM, 0);
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();
@ -108,6 +110,8 @@ void sigsegvHandler(int) {
std::abort();
}
void sigabrtHandler(int) {
signal(SIGABRT, 0);
signal(SIGTERM, 0);
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();