From 47f074837a596400a3284441d2090ecfc7aa57fc Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 17 Oct 2016 15:51:22 -0400 Subject: [PATCH] Whoops, that's not what waitpid() returns. --- native/doscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/doscalls.c b/native/doscalls.c index 4c60ed6..24c1ca9 100644 --- a/native/doscalls.c +++ b/native/doscalls.c @@ -1732,8 +1732,8 @@ APIRET DosExecPgm(PCHAR pObjname, LONG cbObjname, ULONG execFlag, PSZ pArg, PSZ } else { // we're the parent. switch (execFlag) { case EXEC_SYNC: { - const int rc = waitpid(pid, &status, 0); - assert(rc == 0); // !!! FIXME + const pid_t rc = waitpid(pid, &status, 0); + assert(rc == pid); // !!! FIXME setProcessResultCode(pRes, status); break; } // case