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
e1abb39c
Commit
e1abb39c
authored
Dec 06, 2007
by
Matthew Wilcox
Committed by
Matthew Wilcox
Dec 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signal: Use task_is_*
Signed-off-by:
Matthew Wilcox
<
willy@linux.intel.com
>
parent
d9514f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kernel/signal.c
kernel/signal.c
+3
-3
No files found.
kernel/signal.c
View file @
e1abb39c
...
...
@@ -838,7 +838,7 @@ static inline int wants_signal(int sig, struct task_struct *p)
return
0
;
if
(
sig
==
SIGKILL
)
return
1
;
if
(
p
->
state
&
(
TASK_STOPPED
|
TASK_TRACED
))
if
(
task_is_stopped_or_traced
(
p
))
return
0
;
return
task_curr
(
p
)
||
!
signal_pending
(
p
);
}
...
...
@@ -1441,7 +1441,7 @@ void do_notify_parent(struct task_struct *tsk, int sig)
BUG_ON
(
sig
==
-
1
);
/* do_notify_parent_cldstop should have been called instead. */
BUG_ON
(
t
sk
->
state
&
(
TASK_STOPPED
|
TASK_TRACED
));
BUG_ON
(
t
ask_is_stopped_or_traced
(
tsk
));
BUG_ON
(
!
tsk
->
ptrace
&&
(
tsk
->
group_leader
!=
tsk
||
!
thread_group_empty
(
tsk
)));
...
...
@@ -1729,7 +1729,7 @@ static int do_signal_stop(int signr)
* so this check has no races.
*/
if
(
!
t
->
exit_state
&&
!
(
t
->
state
&
(
TASK_STOPPED
|
TASK_TRACED
)
))
{
!
task_is_stopped_or_traced
(
t
))
{
stop_count
++
;
signal_wake_up
(
t
,
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