summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-24 00:20:34 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-24 00:20:34 +0200
commit3253a23b915df9c6e10d586a4a69181c1f1079bc (patch)
tree1e580dce611ff7d62f39c09fdcb46f0e49fe00d7 /Kernel/Syscall.cpp
parent018da1be11e90309d7929803ba47627efe15c202 (diff)
downloadserenity-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.cpp2
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();