From 0b3e9275973970137ccab78da6eb276ac8693517 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 7 Nov 2018 10:46:48 +0100 Subject: [PATCH] Oops, waitpid() was not passing the options parameter to the kernel. --- LibC/unistd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibC/unistd.cpp b/LibC/unistd.cpp index 83443f38e7..f1dbded90e 100644 --- a/LibC/unistd.cpp +++ b/LibC/unistd.cpp @@ -131,7 +131,7 @@ int close(int fd) pid_t waitpid(pid_t waitee, int* wstatus, int options) { - int rc = Syscall::invoke(Syscall::SC_waitpid, waitee, (dword)wstatus); + int rc = Syscall::invoke(Syscall::SC_waitpid, waitee, (dword)wstatus, (dword)options); __RETURN_WITH_ERRNO(rc, rc, -1); }