mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std: use wrappers from raise() rather than raw syscalls
This commit is contained in:
parent
6de4bd850c
commit
59348240d7
@ -228,8 +228,8 @@ pub fn raise(sig: u8) RaiseError!void {
|
||||
// block application signals
|
||||
_ = linux.sigprocmask(SIG_BLOCK, &linux.app_mask, &set);
|
||||
|
||||
const tid = linux.syscall0(linux.SYS_gettid);
|
||||
const rc = linux.syscall2(linux.SYS_tkill, tid, sig);
|
||||
const tid = linux.gettid();
|
||||
const rc = linux.tkill(tid, sig);
|
||||
|
||||
// restore signal mask
|
||||
_ = linux.sigprocmask(SIG_SETMASK, &set, null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user