ToaruOS has sigaction now

This commit is contained in:
K. Lange 2022-08-06 18:29:43 +09:00
parent ad39476a35
commit 984dea5e86

View File

@ -650,7 +650,7 @@ static void handleSigtrap(int sigNum) {
#endif
static void bindSignalHandlers(void) {
#if !defined(_WIN32) && !defined(__toaru__)
#if !defined(_WIN32)
struct sigaction sigIntAction;
sigIntAction.sa_handler = handleSigint;
sigemptyset(&sigIntAction.sa_mask);
@ -670,10 +670,6 @@ static void bindSignalHandlers(void) {
NULL);
#else
signal(SIGINT, handleSigint);
# ifndef _WIN32
signal(SIGTRAP, handleSigtrap);
/* No SIGTRAP on windows? */
# endif
#endif
}