VirtualBox

Changeset 2300 in kBuild


Ignore:
Timestamp:
Mar 1, 2009 5:30:41 AM (16 years ago)
Author:
bird
Message:

kash: execve fix (windows)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shinstance.c

    r2298 r2300  
    11031103
    11041104#elif defined(SH_STUB_MODE) || defined(SH_FORKED_MODE)
    1105 # ifdef _MSC_VER
     1105    errno = 0;
     1106# ifdef _MSC_VER
     1107    errno = 0;
    11061108    rc = _spawnve(_P_WAIT, exe, (char **)argv, (char **)envp);
     1109    if (rc != -1)
     1110    {
     1111        TRACE2((psh, "sh_execve: child exited, rc=%d. (errno=%d)\n", rc, errno));
     1112        exit(rc);
     1113    }
    11071114# else
    11081115    rc = execve(exe, (char **)argv, (char **)envp);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette