Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
35cc9f80
Commit
35cc9f80
authored
Nov 03, 2002
by
Richard Henderson
Committed by
Richard Henderson
Nov 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't clear pcb.unique if CLONE_SETTLS is not set.
parent
8fdb40a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
arch/alpha/kernel/process.c
arch/alpha/kernel/process.c
+7
-1
No files found.
arch/alpha/kernel/process.c
View file @
35cc9f80
...
...
@@ -315,7 +315,13 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
/* Set a new TLS for the child thread? Peek back into the
syscall arguments that we saved on syscall entry. */
childti
->
pcb
.
unique
=
(
clone_flags
&
CLONE_SETTLS
?
regs
->
r19
:
0
);
/* Note: if CLONE_SETTLS is not set, then we must inherit the
value from the parent, which will have been set by the block
copy in dup_task_struct. This is non-intuitive, but is
required for proper operation in the case of a threaded
application calling fork. */
if
(
clone_flags
&
CLONE_SETTLS
)
childti
->
pcb
.
unique
=
regs
->
r19
;
return
0
;
}
...
...
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