mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:58:13 +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 <unistd.h>
|
||||
#include <assert.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
pid_t wait(int* wstatus)
|
||||
{
|
||||
(void)wstatus;
|
||||
ASSERT_NOT_REACHED();
|
||||
return waitpid(-1, wstatus, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue