diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-24 00:20:34 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-24 00:20:34 +0200 |
commit | 3253a23b915df9c6e10d586a4a69181c1f1079bc (patch) | |
tree | 1e580dce611ff7d62f39c09fdcb46f0e49fe00d7 /Kernel/Syscall.cpp | |
parent | 018da1be11e90309d7929803ba47627efe15c202 (diff) | |
download | serenity-3253a23b915df9c6e10d586a4a69181c1f1079bc.zip |
Add a simplified waitpid() so that sh can wait on spawned commands.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r-- | Kernel/Syscall.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp index ede05bda5f..a5701b452f 100644 --- a/Kernel/Syscall.cpp +++ b/Kernel/Syscall.cpp @@ -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(); |