zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 72eb9933fd9ab4a7cb19185fce6c06331a325327 (tree)
parent 43ccc2d81ec4c95c04dad9684f8b24633baab33e
Author: LeRoyce Pearson <leroycepearson@geemili.xyz>
Date:   Sat, 14 Mar 2020 11:34:38 -0600

Call `std.os.waitpid` instead of `std.os.linux.waitpid`

Diffstat:
Mlib/std/fs.zig | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/std/fs.zig b/lib/std/fs.zig @@ -1754,8 +1754,7 @@ test "open file with lock twice, make sure it wasn't open at the same time" { lock_file_for_test(&ctxs[ctx_idx]); if (childpid != 0) { - var status: u32 = 0; - _ = std.os.linux.waitpid(childpid, &status, 0); + _ = std.os.waitpid(childpid, 0); std.debug.assert(!ctxs[0].overlaps(&ctxs[1])); }