Navigation Menu

Skip to content

Commit

Permalink
Whoops, that's not what waitpid() returns.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 17, 2016
1 parent 1c1e6de commit 47f0748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/doscalls.c
Expand Up @@ -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
Expand Down

0 comments on commit 47f0748

Please sign in to comment.