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
Kirill Smelkov
linux
Commits
02bdc207
Commit
02bdc207
authored
Feb 10, 2003
by
Andries E. Brouwer
Committed by
Linus Torvalds
Feb 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] signal error return fix
parent
36dc13b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
kernel/sys.c
kernel/sys.c
+8
-2
No files found.
kernel/sys.c
View file @
02bdc207
...
@@ -907,6 +907,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
...
@@ -907,6 +907,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
p
=
find_task_by_pid
(
pid
);
p
=
find_task_by_pid
(
pid
);
if
(
!
p
)
if
(
!
p
)
goto
out
;
goto
out
;
err
=
-
EINVAL
;
err
=
-
EINVAL
;
if
(
!
thread_group_leader
(
p
))
if
(
!
thread_group_leader
(
p
))
goto
out
;
goto
out
;
...
@@ -918,11 +919,16 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
...
@@ -918,11 +919,16 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid)
err
=
-
EACCES
;
err
=
-
EACCES
;
if
(
p
->
did_exec
)
if
(
p
->
did_exec
)
goto
out
;
goto
out
;
}
else
if
(
p
!=
current
)
}
else
{
goto
out
;
err
=
-
ESRCH
;
if
(
p
!=
current
)
goto
out
;
}
err
=
-
EPERM
;
err
=
-
EPERM
;
if
(
p
->
leader
)
if
(
p
->
leader
)
goto
out
;
goto
out
;
if
(
pgid
!=
pid
)
{
if
(
pgid
!=
pid
)
{
struct
task_struct
*
p
;
struct
task_struct
*
p
;
struct
pid
*
pid
;
struct
pid
*
pid
;
...
...
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