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])); }