mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
spelling
This commit is contained in:
parent
b7c986f47c
commit
1518075b17
@ -35,7 +35,7 @@ void exception_handler_SIGILL(int signal)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// simululate the existence of previous handler
|
// simulate the existence of previous handler
|
||||||
struct sigaction sa_SIGSEGV_prev{};
|
struct sigaction sa_SIGSEGV_prev{};
|
||||||
sa_SIGSEGV_prev.sa_handler = exception_handler_SIGILL;
|
sa_SIGSEGV_prev.sa_handler = exception_handler_SIGILL;
|
||||||
sa_SIGSEGV_prev.sa_flags = SA_RESETHAND;
|
sa_SIGSEGV_prev.sa_flags = SA_RESETHAND;
|
||||||
|
@ -35,7 +35,7 @@ void exception_handler_SIGILL(int signal, siginfo_t *info, void *context)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// simululate the existence of previous handler
|
// simulate the existence of previous handler
|
||||||
struct sigaction sa_SIGSEGV_prev{};
|
struct sigaction sa_SIGSEGV_prev{};
|
||||||
sa_SIGSEGV_prev.sa_sigaction = exception_handler_SIGILL;
|
sa_SIGSEGV_prev.sa_sigaction = exception_handler_SIGILL;
|
||||||
sa_SIGSEGV_prev.sa_flags = SA_SIGINFO | SA_RESETHAND;
|
sa_SIGSEGV_prev.sa_flags = SA_SIGINFO | SA_RESETHAND;
|
||||||
|
@ -32,7 +32,7 @@ static LONG WINAPI exception_handler(LPEXCEPTION_POINTERS ex_pointers)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// simululate the existence of previous handler
|
// simulate the existence of previous handler
|
||||||
SetUnhandledExceptionFilter(exception_handler);
|
SetUnhandledExceptionFilter(exception_handler);
|
||||||
|
|
||||||
if (!remove_file(logs_filepath)) {
|
if (!remove_file(logs_filepath)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user