Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4fd8bab9
Commit
4fd8bab9
authored
Apr 14, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Inherit the process affinity from the parent process.
parent
baa04014
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
process.c
server/process.c
+2
-1
No files found.
server/process.c
View file @
4fd8bab9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment