diff options
| author | daurnimator <quae@daurnimator.com> | 2019-12-22 12:23:28 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2019-12-22 20:20:58 +1100 |
| commit | 59348240d751ca45c64f19346ff4ca6ad686f2d9 (patch) | |
| tree | b7659ce60f32f4b3272f5ade9f1e26b0b2afff52 /lib/std/os.zig | |
| parent | 6de4bd850c3def0ab09b4f40beecfffd85c91ce3 (diff) | |
| download | zig-59348240d751ca45c64f19346ff4ca6ad686f2d9.tar.gz zig-59348240d751ca45c64f19346ff4ca6ad686f2d9.zip | |
std: use wrappers from raise() rather than raw syscalls
Diffstat (limited to 'lib/std/os.zig')
| -rw-r--r-- | lib/std/os.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index 1c4ef01330..3d1b3540b6 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -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); |
