Add a simplified waitpid() so that sh can wait on spawned commands.

This commit is contained in:
Andreas Kling 2018-10-24 00:20:34 +02:00
commit 3253a23b91
Notes: sideshowbarker 2024-07-19 18:39:49 +09:00
8 changed files with 42 additions and 7 deletions

View file

@ -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();