aboutsummaryrefslogtreecommitdiff
path: root/lib/std/start.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-23 11:49:43 -0700
committerGitHub <noreply@github.com>2024-07-23 11:49:43 -0700
commit718f8d531488866ff3623c83e05d8ad9a8f72659 (patch)
treec75598db53f62ca4f75a11319998536eed5ac0db /lib/std/start.zig
parente8503ecb6552087d6954423e59f3dfa8ca4a1b09 (diff)
parent2cced8903e07066a724a81257dadae233dd5893f (diff)
downloadzig-718f8d531488866ff3623c83e05d8ad9a8f72659.tar.gz
zig-718f8d531488866ff3623c83e05d8ad9a8f72659.zip
Merge pull request #20706 from alexrp/sigaction-nosys
`std.posix`: Make `sigaction()` infallible
Diffstat (limited to 'lib/std/start.zig')
-rw-r--r--lib/std/start.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig
index 33099d5f30..5bcd2f0eb6 100644
--- a/lib/std/start.zig
+++ b/lib/std/start.zig
@@ -638,8 +638,7 @@ fn maybeIgnoreSigpipe() void {
.mask = posix.empty_sigset,
.flags = 0,
};
- posix.sigaction(posix.SIG.PIPE, &act, null) catch |err|
- std.debug.panic("failed to set noop SIGPIPE handler: {s}", .{@errorName(err)});
+ posix.sigaction(posix.SIG.PIPE, &act, null);
}
}