mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Ignore SIGSYS on BSD by default
This commit is contained in:
parent
179e048bba
commit
37d40e087f
7 changed files with 48 additions and 16 deletions
|
@ -21,6 +21,7 @@
|
|||
#include "libc/calls/struct/sigaction.h"
|
||||
#include "libc/calls/struct/siginfo.h"
|
||||
#include "libc/calls/struct/sigset.h"
|
||||
#include "libc/calls/syscall_support-sysv.internal.h"
|
||||
#include "libc/calls/ucontext.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
|
@ -204,3 +205,9 @@ TEST(sigaction, autoZombieSlayer) {
|
|||
// clean up
|
||||
ASSERT_SYS(0, 0, sigaction(SIGCHLD, &sa, 0));
|
||||
}
|
||||
|
||||
TEST(sigaction, enosys_returnsErrnoRatherThanSigsysByDefault) {
|
||||
if (IsTiny()) return; // systemfive.S disables the fix w/ tiny
|
||||
if (IsOpenbsd()) return; // TODO: Why does OpenBSD raise SIGABRT?
|
||||
ASSERT_SYS(ENOSYS, -1, sys_bogus());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue