Changeset 1636


Ignore:
Timestamp:
Nov 15, 2004, 10:03:46 AM (20 years ago)
Author:
bird
Message:

hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/emx/src/lib/sys/__spawnve.c

    • Property cvs2svn:cvs-rev changed from 1.13 to 1.14
    r1635 r1636  
    314314                    case P_OVERLAY:
    315315                    {
     316                        /** @todo cleanup this mess! */
    316317                        PID pid = resc.codeTerminate;
    317318                        PID pidEnded = 0;
    318319                        FS_SAVE_LOAD();
    319320                        LIBCLOG_MSG("Calling DosWaitChild(,,,,0x%04lx)\n", pid);
    320                         rc = DosWaitChild(DCWA_PROCESS, DCWW_WAIT, &resc, &pidEnded, pid);
     321                        //rc = DosWaitChild(DCWA_PROCESS, DCWW_WAIT, &resc, &pidEnded, pid);
     322                        int iStatus = 0;
     323                        pidEnded = waitpid(pid, &iStatus, 0);
     324                        if (pidEnded <= 0)
     325                            rc = -errno;
     326                        else
     327                            resc.codeResult = iStatus >> 8;
    321328                        if (!rc)
    322329                        {
Note: See TracChangeset for help on using the changeset viewer.