From 44d53d9306711d16ae7e64b071275f2258bb38fc Mon Sep 17 00:00:00 2001 From: Guru Prasad Srinivasa Date: Wed, 9 Mar 2016 12:44:58 -0500 Subject: [PATCH] Fixed a bug in bad_waitpid.c The comments for this particular test suggest that the parent should attempt waiting on itself. However, the code makes the parent wait on its child. Fixed. --- userland/testbin/badcall/bad_waitpid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userland/testbin/badcall/bad_waitpid.c b/userland/testbin/badcall/bad_waitpid.c index 09fe88a..7af2196 100644 --- a/userland/testbin/badcall/bad_waitpid.c +++ b/userland/testbin/badcall/bad_waitpid.c @@ -217,7 +217,7 @@ wait_parent(void) report_survival(rv, errno, &result); _exit(0); } - rv = waitpid(childpid, &x, 0); + rv = waitpid(mypid, &x, 0); report_beginsub("from parent:"); report_survival(rv, errno, &result); return result;