| author | |
| committer | |
| log | cc65eaf0a982066a8655632c04db11f7c0c5d0ad |
| tree | a9e9c81b74f259c26a38f8f7fc6bf3465fbe8e1c |
| parent | d72f3d353f771daced78af70c049e3c5075b3529 |
2 files changed, 0 insertions(+), 8 deletions(-)
lib/std/os/linux.zig-1| ... | ... | @@ -5113,7 +5113,6 @@ pub const NSIG = if (is_mips) 128 else 65; |
| 5113 | 5113 | pub const sigset_t = [1024 / 32]u32; |
| 5114 | 5114 | |
| 5115 | 5115 | pub const all_mask: sigset_t = [_]u32{0xffffffff} ** @typeInfo(sigset_t).array.len; |
| 5116 | pub const app_mask: sigset_t = [2]u32{ 0xfffffffc, 0x7fffffff } ++ [_]u32{0xffffffff} ** 30; | |
| 5117 | 5116 | |
| 5118 | 5117 | const k_sigaction_funcs = struct { |
| 5119 | 5118 | const handler = ?*align(1) const fn (i32) callconv(.c) void; |
lib/std/posix.zig-7| ... | ... | @@ -720,16 +720,9 @@ pub fn raise(sig: u8) RaiseError!void { |
| 720 | 720 | } |
| 721 | 721 | |
| 722 | 722 | if (native_os == .linux) { |
| 723 | var set: sigset_t = undefined; | |
| 724 | // block application signals | |
| 725 | sigprocmask(SIG.BLOCK, &linux.app_mask, &set); | |
| 726 | ||
| 727 | 723 | const tid = linux.gettid(); |
| 728 | 724 | const rc = linux.tkill(tid, sig); |
| 729 | 725 | |
| 730 | // restore signal mask | |
| 731 | sigprocmask(SIG.SETMASK, &set, null); | |
| 732 | ||
| 733 | 726 | switch (errno(rc)) { |
| 734 | 727 | .SUCCESS => return, |
| 735 | 728 | else => |err| return unexpectedErrno(err), |