authorgravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-14 11:34:38-06:00
committergravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-14 11:34:38-06:00
log72eb9933fd9ab4a7cb19185fce6c06331a325327
tree686184e728a77b1927fda3151dd28d66575a325e
parent43ccc2d81ec4c95c04dad9684f8b24633baab33e

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


1 files changed, 1 insertions(+), 2 deletions(-)

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