From 6d18ec7546ccf80cb7d4098f6f06f9ed96ac2119 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 3 Sep 2023 23:13:37 +0300 Subject: [PATCH] LibTest: Don't attempt to use SA_NOCLDWAIT for SIGABRT SA_NOCLDWAIT is only meaningful for SIGCHLD. Fixes building on the Hurd, which lacks SA_NOCLDWAIT. --- Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp b/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp index 314576847f..c2fce09317 100644 --- a/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp +++ b/Userland/Libraries/LibTest/JavaScriptTestRunnerMain.cpp @@ -42,7 +42,7 @@ static void handle_sigabrt(int) Test::cleanup(); struct sigaction act; memset(&act, 0, sizeof(act)); - act.sa_flags = SA_NOCLDWAIT; + act.sa_flags = 0; act.sa_handler = SIG_DFL; int rc = sigaction(SIGABRT, &act, nullptr); if (rc < 0) { @@ -66,7 +66,7 @@ int main(int argc, char** argv) struct sigaction act; memset(&act, 0, sizeof(act)); - act.sa_flags = SA_NOCLDWAIT; + act.sa_flags = 0; act.sa_handler = handle_sigabrt; int rc = sigaction(SIGABRT, &act, nullptr); if (rc < 0) {