authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-10-27 16:18:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-10-29 06:20:51-07:00
log80a341b4114ac171a2592423027e0ea4015fcf81
tree34fe1812d3d1f09ed65da74187b07b9b69c22778
parent8b269f7e18ee1e0874b7cbf7cf2853b7e34b6a36

std: remove awareness of POLL signal

this signal seems to be deprecated and/or useless on every target

2 files changed, 0 insertions(+), 4 deletions(-)

lib/std/start.zig-3
......@@ -771,9 +771,6 @@ fn maybeIgnoreSignals() void {
771771 if (@hasField(posix.SIG, "IO") and !std.options.keep_sig_io)
772772 posix.sigaction(.IO, &act, null);
773773
774 if (@hasField(posix.SIG, "POLL") and !std.options.keep_sig_poll)
775 posix.sigaction(.POLL, &act, null);
776
777774 if (@hasField(posix.SIG, "PIPE") and !std.options.keep_sig_pipe)
778775 posix.sigaction(.PIPE, &act, null);
779776}
lib/std/std.zig-1
......@@ -144,7 +144,6 @@ pub const Options = struct {
144144
145145 crypto_fork_safety: bool = true,
146146
147 keep_sig_poll: bool = false,
148147 keep_sig_io: bool = false,
149148
150149 /// By default Zig disables SIGPIPE by setting a "no-op" handler for it. Set this option