mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Tune posix_spawn() successful fix
This commit is contained in:
parent
a8bc7ac119
commit
706cb66310
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ static textwindows errno_t posix_spawn_nt_impl(
|
|||
// figure out flags
|
||||
uint32_t dwCreationFlags = 0;
|
||||
short flags = attrp && *attrp ? (*attrp)->flags : 0;
|
||||
if (flags & POSIX_SPAWN_SETPGROUP)
|
||||
if (flags & (POSIX_SPAWN_SETPGROUP | POSIX_SPAWN_SETSID))
|
||||
dwCreationFlags |= kNtCreateNewProcessGroup;
|
||||
|
||||
// create process startinfo
|
||||
|
|
Loading…
Reference in a new issue