diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-21 13:31:06 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-07-21 22:38:09 +0200 |
| commit | 2cced8903e07066a724a81257dadae233dd5893f (patch) | |
| tree | b362b1feea40b538fde6cf2ee503125107414415 /lib/std/start.zig | |
| parent | 4d2868f24298981f67dea03ab523a97fd9399a43 (diff) | |
| download | zig-2cced8903e07066a724a81257dadae233dd5893f.tar.gz zig-2cced8903e07066a724a81257dadae233dd5893f.zip | |
std.posix: Consider invalid signal numbers to sigaction() to be programmer error.
The set of signals that cannot have their action changed is documented in POSIX,
and any additional, non-standard signals are documented by the specific OS. I
see no valid reason why EINVAL should be considered an unpredictable error here.
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index adcfb9d71b..7301331296 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -609,8 +609,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); } } |
