Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11857
b: refs/heads/master
c: 7f2a525
h: refs/heads/master
i:
  11855: 77fd292
v: v3
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed Oct 31, 2005
1 parent cfaaac2 commit 26c9fb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 396dc44bcac58f464b7b23c345052e37881cccea
refs/heads/master: 7f2a52555998c699a7e89f24636c909d6fc08a60
9 changes: 9 additions & 0 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,15 @@ static long do_wait(pid_t pid, int options, struct siginfo __user *infop,

switch (p->state) {
case TASK_TRACED:
/*
* When we hit the race with PTRACE_ATTACH,
* we will not report this child. But the
* race means it has not yet been moved to
* our ptrace_children list, so we need to
* set the flag here to avoid a spurious ECHILD
* when the race happens with the only child.
*/
flag = 1;
if (!my_ptrace_child(p))
continue;
/*FALLTHROUGH*/
Expand Down

0 comments on commit 26c9fb1

Please sign in to comment.