mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
- Fix signal bug introduced in last commit
This commit is contained in:
parent
8f4bf93f02
commit
4c8a087b81
@ -92,17 +92,19 @@ public:
|
|||||||
|
|
||||||
#ifndef Q_WS_WIN
|
#ifndef Q_WS_WIN
|
||||||
void sigintHandler(int) {
|
void sigintHandler(int) {
|
||||||
|
signal(SIGINT, 0);
|
||||||
qDebug("Catching SIGINT, exiting cleanly");
|
qDebug("Catching SIGINT, exiting cleanly");
|
||||||
app->exit();
|
app->exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void sigtermHandler(int) {
|
void sigtermHandler(int) {
|
||||||
|
signal(SIGTERM, 0);
|
||||||
qDebug("Catching SIGTERM, exiting cleanly");
|
qDebug("Catching SIGTERM, exiting cleanly");
|
||||||
app->exit();
|
app->exit();
|
||||||
}
|
}
|
||||||
void sigsegvHandler(int) {
|
void sigsegvHandler(int) {
|
||||||
signal(SIGABRT, 0);
|
signal(SIGABRT, 0);
|
||||||
signal(SIGTERM, 0);
|
signal(SIGSEGV, 0);
|
||||||
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();
|
||||||
@ -111,7 +113,7 @@ void sigsegvHandler(int) {
|
|||||||
}
|
}
|
||||||
void sigabrtHandler(int) {
|
void sigabrtHandler(int) {
|
||||||
signal(SIGABRT, 0);
|
signal(SIGABRT, 0);
|
||||||
signal(SIGTERM, 0);
|
signal(SIGSEGV, 0);
|
||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user