Attempt to fix Emacs spawning issue

This commit is contained in:
Justine Tunney 2024-10-11 06:09:46 -07:00
parent 000d6dbb0f
commit d8fac40f55
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -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 = {