From f490ce0fb52c89f548444d38077e681b3dab8027 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 22 May 2019 13:21:17 +0200 Subject: [PATCH] LibC: Implement wait() as a wrapper around waitpid(). --- LibC/sys/wait.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibC/sys/wait.cpp b/LibC/sys/wait.cpp index 031d446399..d010b39cba 100644 --- a/LibC/sys/wait.cpp +++ b/LibC/sys/wait.cpp @@ -1,12 +1,12 @@ #include +#include #include extern "C" { pid_t wait(int* wstatus) { - (void)wstatus; - ASSERT_NOT_REACHED(); + return waitpid(-1, wstatus, 0); } }