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
98a3d3b1
Commit
98a3d3b1
authored
Jan 18, 2003
by
Daniel Jacobowitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak has_stopped_jobs for use with debugging
parent
6a3354a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
kernel/exit.c
kernel/exit.c
+11
-0
No files found.
kernel/exit.c
View file @
98a3d3b1
...
...
@@ -203,6 +203,17 @@ static inline int has_stopped_jobs(int pgrp)
for_each_task_pid
(
pgrp
,
PIDTYPE_PGID
,
p
,
l
,
pid
)
{
if
(
p
->
state
!=
TASK_STOPPED
)
continue
;
/* If p is stopped by a debugger on a signal that won't
stop it, then don't count p as stopped. This isn't
perfect but it's a good approximation. */
if
(
unlikely
(
p
->
ptrace
)
&&
p
->
exit_code
!=
SIGSTOP
&&
p
->
exit_code
!=
SIGTSTP
&&
p
->
exit_code
!=
SIGTTOU
&&
p
->
exit_code
!=
SIGTTIN
)
continue
;
retval
=
1
;
break
;
}
...
...
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