1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-05 08:47:36 +00:00

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.
This commit is contained in:
Sergey Bugaev 2023-09-03 23:13:37 +03:00 committed by Andrew Kaster
parent 976d93d910
commit 6d18ec7546

View file

@ -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) {