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
8ce5870d
Commit
8ce5870d
authored
Jan 19, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Remove CLONE_DETACHED
From: Andries.Brouwer@cwi.nl Remove obsolete CLONE_DETACHED
parent
8883639b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
include/linux/sched.h
include/linux/sched.h
+1
-1
kernel/fork.c
kernel/fork.c
+0
-16
No files found.
include/linux/sched.h
View file @
8ce5870d
...
@@ -50,7 +50,7 @@ struct exec_domain;
...
@@ -50,7 +50,7 @@ struct exec_domain;
#define CLONE_SETTLS 0x00080000
/* create a new TLS for the child */
#define CLONE_SETTLS 0x00080000
/* create a new TLS for the child */
#define CLONE_PARENT_SETTID 0x00100000
/* set the TID in the parent */
#define CLONE_PARENT_SETTID 0x00100000
/* set the TID in the parent */
#define CLONE_CHILD_CLEARTID 0x00200000
/* clear the TID in the child */
#define CLONE_CHILD_CLEARTID 0x00200000
/* clear the TID in the child */
#define CLONE_DETACHED 0x00400000
/*
Not used - CLONE_THREAD implies detached uniquely
*/
#define CLONE_DETACHED 0x00400000
/*
Unused, ignored
*/
#define CLONE_UNTRACED 0x00800000
/* set if the tracing process can't force CLONE_PTRACE on this clone */
#define CLONE_UNTRACED 0x00800000
/* set if the tracing process can't force CLONE_PTRACE on this clone */
#define CLONE_CHILD_SETTID 0x01000000
/* set the TID in the child */
#define CLONE_CHILD_SETTID 0x01000000
/* set the TID in the child */
#define CLONE_STOPPED 0x02000000
/* Start in stopped state */
#define CLONE_STOPPED 0x02000000
/* Start in stopped state */
...
...
kernel/fork.c
View file @
8ce5870d
...
@@ -859,22 +859,6 @@ struct task_struct *copy_process(unsigned long clone_flags,
...
@@ -859,22 +859,6 @@ struct task_struct *copy_process(unsigned long clone_flags,
if
((
clone_flags
&
CLONE_SIGHAND
)
&&
!
(
clone_flags
&
CLONE_VM
))
if
((
clone_flags
&
CLONE_SIGHAND
)
&&
!
(
clone_flags
&
CLONE_VM
))
return
ERR_PTR
(
-
EINVAL
);
return
ERR_PTR
(
-
EINVAL
);
/*
* CLONE_DETACHED must match CLONE_THREAD: it's a historical
* thing.
*/
if
(
!
(
clone_flags
&
CLONE_DETACHED
)
!=
!
(
clone_flags
&
CLONE_THREAD
))
{
/* Warn about the old no longer supported case so that we see it */
if
(
clone_flags
&
CLONE_THREAD
)
{
static
int
count
;
if
(
count
<
5
)
{
count
++
;
printk
(
KERN_WARNING
"%s trying to use CLONE_THREAD without CLONE_DETACH
\n
"
,
current
->
comm
);
}
}
return
ERR_PTR
(
-
EINVAL
);
}
retval
=
security_task_create
(
clone_flags
);
retval
=
security_task_create
(
clone_flags
);
if
(
retval
)
if
(
retval
)
goto
fork_out
;
goto
fork_out
;
...
...
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