Skip to content

Commit

Permalink
Tune posix_spawn() successful fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Oct 11, 2024
1 parent a8bc7ac commit 706cb66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/proc/posix_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 706cb66

Please sign in to comment.