diff --git a/src/kernel/libroot/posix/sys/wait.c b/src/kernel/libroot/posix/sys/wait.c index a29c2ac8fc..7683a59aad 100644 --- a/src/kernel/libroot/posix/sys/wait.c +++ b/src/kernel/libroot/posix/sys/wait.c @@ -31,6 +31,7 @@ waitpid(pid_t pid, int *_status, int options) if (_status != NULL) { // ToDo: fill in _status! + *_status = 0; } if (thread < B_OK) {