From 72eb9933fd9ab4a7cb19185fce6c06331a325327 Mon Sep 17 00:00:00 2001 From: LeRoyce Pearson Date: Sat, 14 Mar 2020 11:34:38 -0600 Subject: [PATCH] Call `std.os.waitpid` instead of `std.os.linux.waitpid` --- lib/std/fs.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/fs.zig b/lib/std/fs.zig index 9b45dc6652..65e20d0176 100644 --- 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])); }