LibC: Implement wait() as a wrapper around waitpid().

This commit is contained in:
Andreas Kling 2019-05-22 13:21:17 +02:00
commit f490ce0fb5
Notes: sideshowbarker 2024-07-19 13:59:30 +09:00

View file

@ -1,12 +1,12 @@
#include <sys/wait.h>
#include <unistd.h>
#include <assert.h>
extern "C" {
pid_t wait(int* wstatus)
{
(void)wstatus;
ASSERT_NOT_REACHED();
return waitpid(-1, wstatus, 0);
}
}