mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
parent
a52792c59f
commit
cf70a44756
8 changed files with 240 additions and 132 deletions
|
@ -382,9 +382,10 @@ static textwindows errno_t posix_spawn_nt_impl(
|
|||
envp = environ;
|
||||
if ((fdspec = __describe_fds(fds.p, fds.n, &startinfo, hCreatorProcess,
|
||||
&lpExplicitHandles, &dwExplicitHandleCount))) {
|
||||
rc = ntspawn(dirhand, path, argv, envp, (char *[]){fdspec, maskvar, 0},
|
||||
dwCreationFlags, lpCurrentDirectory, 0, lpExplicitHandles,
|
||||
dwExplicitHandleCount, &startinfo, &procinfo);
|
||||
rc = ntspawn(&(struct NtSpawnArgs){
|
||||
dirhand, path, argv, envp, (char *[]){fdspec, maskvar, 0},
|
||||
dwCreationFlags, lpCurrentDirectory, 0, lpExplicitHandles,
|
||||
dwExplicitHandleCount, &startinfo, &procinfo});
|
||||
}
|
||||
if (rc == -1) {
|
||||
err = errno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue