diff --git a/LibC/unistd.cpp b/LibC/unistd.cpp index 83443f38e77..f1dbded90ee 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); }