mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
fix: do not send kill signal to pid0
This commit is contained in:
parent
78868388aa
commit
232e62c405
@ -1 +1 @@
|
|||||||
5866
|
5867
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
//
|
//
|
||||||
#include <DbgHelp.h>
|
#include <DbgHelp.h>
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const QString SayLastWords() noexcept
|
const QString SayLastWords() noexcept
|
||||||
@ -125,7 +127,7 @@ void signalHandler(int signum)
|
|||||||
QvMessageBoxWarn(nullptr, "UNCAUGHT EXCEPTION", message);
|
QvMessageBoxWarn(nullptr, "UNCAUGHT EXCEPTION", message);
|
||||||
}
|
}
|
||||||
#ifndef Q_OS_WIN
|
#ifndef Q_OS_WIN
|
||||||
kill(0, SIGTRAP);
|
kill(getpid(), SIGTRAP);
|
||||||
#else
|
#else
|
||||||
exit(-99);
|
exit(-99);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user