Whoops, that's not what waitpid() returns.
This commit is contained in:
1 parent
1c1e6de400
commit
47f074837a
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user