[*] These config fields were switched to abs values, not relative to the user signal range

This commit is contained in:
Reece Wilson 2024-03-08 21:59:50 +00:00
parent 38bf52e852
commit afbe942ffd

View File

@ -834,7 +834,7 @@ namespace Aurora::Threading::Threads
.sa_flags = 0 .sa_flags = 0
}; };
::sigemptyset(&action.sa_mask); ::sigemptyset(&action.sa_mask);
::sigaction(SIGRTMIN + gRuntimeConfig.linuxConfig.uSignalTerminate, &action, nullptr); ::sigaction(gRuntimeConfig.linuxConfig.uSignalTerminate, &action, nullptr);
#endif #endif
} }
@ -1369,7 +1369,7 @@ namespace Aurora::Threading::Threads
// .sa_handler = SIG_DFL // .sa_handler = SIG_DFL
//}; //};
//::sigemptyset(&action.sa_mask); //::sigemptyset(&action.sa_mask);
//::sigaction(SIGRTMIN + gRuntimeConfig.linuxConfig.uSignalTerminate, &action, nullptr); //::sigaction(gRuntimeConfig.linuxConfig.uSignalTerminate, &action, nullptr);
#endif #endif
} }
@ -1488,7 +1488,7 @@ namespace Aurora::Threading::Threads
if (this->bSupportsAltKill) if (this->bSupportsAltKill)
{ {
::pthread_kill(this->handle_, SIGRTMIN + gRuntimeConfig.linuxConfig.uSignalTerminate); ::pthread_kill(this->handle_, gRuntimeConfig.linuxConfig.uSignalTerminate);
} }
else else
{ {