mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Implement waitpid() support for getting the waitee's exit code.
This commit is contained in:
parent
5cfeeede7c
commit
ec07761d0f
7 changed files with 33 additions and 10 deletions
|
@ -95,7 +95,7 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3)
|
|||
case Syscall::PosixGetpid:
|
||||
return current->sys$getpid();
|
||||
case Syscall::PosixWaitpid:
|
||||
return current->sys$waitpid((pid_t)arg1);
|
||||
return current->sys$waitpid((pid_t)arg1, (int*)arg2, (int)arg3);
|
||||
case Syscall::PosixMmap:
|
||||
return (dword)current->sys$mmap((void*)arg1, (size_t)arg2);
|
||||
case Syscall::PosixMunmap:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue