From f0dd6fc2c8f305d273888643b134b69b579a5f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 3 Nov 2004 15:03:51 +0000 Subject: [PATCH] Since the status field is still not set correctly (lazy me), reset it to zero at least. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9769 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/sys/wait.c | 1 + 1 file changed, 1 insertion(+) 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) {