mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Add a simplified waitpid() so that sh can wait on spawned commands.
This commit is contained in:
parent
018da1be11
commit
3253a23b91
8 changed files with 42 additions and 7 deletions
|
@ -88,6 +88,8 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3)
|
|||
return current->sys$getgid();
|
||||
case Syscall::PosixGetpid:
|
||||
return current->sys$getpid();
|
||||
case Syscall::PosixWaitpid:
|
||||
return current->sys$waitpid((pid_t)arg1);
|
||||
case Syscall::PosixExit:
|
||||
cli();
|
||||
locker.unlock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue