This commit is contained in:
otavepto 2024-03-11 01:40:47 +02:00
parent b7c986f47c
commit 1518075b17
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ void exception_handler_SIGILL(int signal)
int main()
{
// simululate the existence of previous handler
// simulate the existence of previous handler
struct sigaction sa_SIGSEGV_prev{};
sa_SIGSEGV_prev.sa_handler = exception_handler_SIGILL;
sa_SIGSEGV_prev.sa_flags = SA_RESETHAND;

View File

@ -35,7 +35,7 @@ void exception_handler_SIGILL(int signal, siginfo_t *info, void *context)
int main()
{
// simululate the existence of previous handler
// simulate the existence of previous handler
struct sigaction sa_SIGSEGV_prev{};
sa_SIGSEGV_prev.sa_sigaction = exception_handler_SIGILL;
sa_SIGSEGV_prev.sa_flags = SA_SIGINFO | SA_RESETHAND;

View File

@ -32,7 +32,7 @@ static LONG WINAPI exception_handler(LPEXCEPTION_POINTERS ex_pointers)
int main()
{
// simululate the existence of previous handler
// simulate the existence of previous handler
SetUnhandledExceptionFilter(exception_handler);
if (!remove_file(logs_filepath)) {