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 <DbgHelp.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
const QString SayLastWords() noexcept
|
||||
@ -125,7 +127,7 @@ void signalHandler(int signum)
|
||||
QvMessageBoxWarn(nullptr, "UNCAUGHT EXCEPTION", message);
|
||||
}
|
||||
#ifndef Q_OS_WIN
|
||||
kill(0, SIGTRAP);
|
||||
kill(getpid(), SIGTRAP);
|
||||
#else
|
||||
exit(-99);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user