| ... | @@ -784,9 +784,19 @@ fn maybeIgnoreSignals() void { | ... | @@ -784,9 +784,19 @@ fn maybeIgnoreSignals() void { |
| 784 | .mask = posix.sigemptyset(), | 784 | .mask = posix.sigemptyset(), |
| 785 | .flags = 0, | 785 | .flags = 0, |
| 786 | }; | 786 | }; |
| 787 | if (!std.options.keep_sigpoll) posix.sigaction(posix.SIG.POLL, &act, null); | 787 | |
| 788 | if (@hasField(posix.SIG, "IO") and posix.SIG.IO != posix.SIG.POLL and !std.options.keep_sigio) posix.sigaction(posix.SIG.IO, &act, null); | 788 | if (@hasField(posix.SIG, "POLL") and !std.options.keep_sigpoll) |
| 789 | if (!std.options.keep_sigpipe) posix.sigaction(posix.SIG.PIPE, &act, null); | 789 | posix.sigaction(posix.SIG.POLL, &act, null); |
| | 790 | |
| | 791 | if (@hasField(posix.SIG, "IO") and |
| | 792 | (!@hasField(posix.SIG, "POLL") or posix.SIG.IO != posix.SIG.POLL) and |
| | 793 | !std.options.keep_sigio) |
| | 794 | { |
| | 795 | posix.sigaction(posix.SIG.IO, &act, null); |
| | 796 | } |
| | 797 | |
| | 798 | if (@hasField(posix.SIG, "PIPE") and !std.options.keep_sigpipe) |
| | 799 | posix.sigaction(posix.SIG.PIPE, &act, null); |
| 790 | } | 800 | } |
| 791 | | 801 | |
| 792 | fn noopSigHandler(_: i32) callconv(.c) void {} | 802 | fn noopSigHandler(_: i32) callconv(.c) void {} |