mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
std.posix: Don't consider NOSYS a valid error from sigaction().
I know of no "POSIX" system that does not have a sigaction() syscall. Closes #20704.
This commit is contained in:
parent
08cddaf11c
commit
4d2868f242
@ -5661,7 +5661,7 @@ pub fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) SigaltstackError!void {
|
||||
pub fn sigaction(sig: u6, noalias act: ?*const Sigaction, noalias oact: ?*Sigaction) error{OperationNotSupported}!void {
|
||||
switch (errno(system.sigaction(sig, act, oact))) {
|
||||
.SUCCESS => return,
|
||||
.INVAL, .NOSYS => return error.OperationNotSupported,
|
||||
.INVAL => return error.OperationNotSupported,
|
||||
else => unreachable,
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user