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:
parent
976d93d910
commit
6d18ec7546
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue