Skip to content

Commit

Permalink
Attempt to fix Emacs spawning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Oct 11, 2024
1 parent 000d6db commit d8fac40
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libc/proc/posix_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,8 @@ 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_SETSID) {
dwCreationFlags |= kNtDetachedProcess;
}
if (flags & POSIX_SPAWN_SETPGROUP) {
if (flags & POSIX_SPAWN_SETPGROUP)
dwCreationFlags |= kNtCreateNewProcessGroup;
}

// create process startinfo
struct NtStartupInfo startinfo = {
Expand Down

0 comments on commit d8fac40

Please sign in to comment.