Alexandre Julliard : server: Inherit the process affinity from the parent process.

Alexandre Julliard julliard at winehq.org
Fri Apr 15 10:19:24 CDT 2011


Module: wine
Branch: master
Commit: 4fd8bab99ef4e0f33cb3e3539de5b0e85fc0560f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4fd8bab99ef4e0f33cb3e3539de5b0e85fc0560f

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Apr 14 19:57:52 2011 +0200

server: Inherit the process affinity from the parent process.

---

 server/process.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/server/process.c b/server/process.c
index a3aa586..d868d21 100644
--- a/server/process.c
+++ b/server/process.c
@@ -320,7 +320,6 @@ struct thread *create_process( int fd, struct thread *parent_thread, int inherit
     process->exit_code       = STILL_ACTIVE;
     process->running_threads = 0;
     process->priority        = PROCESS_PRIOCLASS_NORMAL;
-    process->affinity        = ~0;
     process->suspend         = 0;
     process->is_system       = 0;
     process->create_flags    = 0;
@@ -355,6 +354,7 @@ struct thread *create_process( int fd, struct thread *parent_thread, int inherit
     {
         process->handles = alloc_handle_table( process, 0 );
         process->token = token_create_admin();
+        process->affinity = ~0;
     }
     else
     {
@@ -365,6 +365,7 @@ struct thread *create_process( int fd, struct thread *parent_thread, int inherit
         /* Note: for security reasons, starting a new process does not attempt
          * to use the current impersonation token for the new process */
         process->token = token_duplicate( parent->token, TRUE, 0 );
+        process->affinity = parent->affinity;
     }
     if (!process->handles || !process->token) goto error;
 




More information about the wine-cvs mailing list