mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibC: Implement wait() as a wrapper around waitpid().
This commit is contained in:
parent
4aef87a9a4
commit
f490ce0fb5
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
pid_t wait(int* wstatus)
|
pid_t wait(int* wstatus)
|
||||||
{
|
{
|
||||||
(void)wstatus;
|
return waitpid(-1, wstatus, 0);
|
||||||
ASSERT_NOT_REACHED();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue