[PATCH 4/6] server: Copy the parent process's group id only when the lowest bit of console_flags is set.

Torge Matthies openglfreak at googlemail.com
Mon Apr 4 21:06:41 CDT 2022


Instead of if console_flags != 0.

Signed-off-by: Torge Matthies <openglfreak at googlemail.com>
---
 server/process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/process.c b/server/process.c
index 65e2aa70de2..283cd5db209 100644
--- a/server/process.c
+++ b/server/process.c
@@ -1363,7 +1363,7 @@ DECL_HANDLER(new_process)
         /* debug_children is set to 1 by default */
     }
 
-    if (!info->data->console_flags) process->group_id = parent->group_id;
+    if (!(info->data->console_flags & 1)) process->group_id = parent->group_id;
 
     info->process = (struct process *)grab_object( process );
     reply->info = alloc_handle( current->process, info, SYNCHRONIZE, 0 );
-- 
2.35.1




More information about the wine-devel mailing list