Skip to content

Commit d8fac40

Browse files
committed
Attempt to fix Emacs spawning issue
1 parent 000d6db commit d8fac40

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libc/proc/posix_spawn.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,8 @@ 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_SETSID) {
354-
dwCreationFlags |= kNtDetachedProcess;
355-
}
356-
if (flags & POSIX_SPAWN_SETPGROUP) {
353+
if (flags & POSIX_SPAWN_SETPGROUP)
357354
dwCreationFlags |= kNtCreateNewProcessGroup;
358-
}
359355

360356
// create process startinfo
361357
struct NtStartupInfo startinfo = {

0 commit comments

Comments
 (0)