Skip to content

Commit 706cb66

Browse files
committed
Tune posix_spawn() successful fix
1 parent a8bc7ac commit 706cb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/proc/posix_spawn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static textwindows errno_t posix_spawn_nt_impl(
350350
// figure out flags
351351
uint32_t dwCreationFlags = 0;
352352
short flags = attrp && *attrp ? (*attrp)->flags : 0;
353-
if (flags & POSIX_SPAWN_SETPGROUP)
353+
if (flags & (POSIX_SPAWN_SETPGROUP | POSIX_SPAWN_SETSID))
354354
dwCreationFlags |= kNtCreateNewProcessGroup;
355355

356356
// create process startinfo

0 commit comments

Comments
 (0)