Whoops, that's not what waitpid() returns.

This commit is contained in:
Ryan C. Gordon committed 2016-10-17 15:51:22 -04:00
1 parent 1c1e6de400
commit 47f074837a
1 file changed
+2 -2
+2 -2
View File
@@ -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