From d8fac40f55f1632d985c939f1bb9c9e41d7a92ad Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Fri, 11 Oct 2024 06:09:46 -0700 Subject: [PATCH] Attempt to fix Emacs spawning issue --- libc/proc/posix_spawn.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libc/proc/posix_spawn.c b/libc/proc/posix_spawn.c index 434702d77..c3eaac6a9 100644 --- a/libc/proc/posix_spawn.c +++ b/libc/proc/posix_spawn.c @@ -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 = {