Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256869
b: refs/heads/master
c: eac1b5e
h: refs/heads/master
i:
  256867: 3a8e29b
v: v3
  • Loading branch information
Oleg Nesterov committed Jul 22, 2011
1 parent 5d2199a commit 88b9645
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 8a35241803eeb0e9fd3fe27835d6b2775c73b641
refs/heads/master: eac1b5e57d7abc836e78fd3fbcf77dbeed01edc9
8 changes: 8 additions & 0 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,14 @@ static int de_thread(struct task_struct *tsk)

BUG_ON(leader->exit_state != EXIT_ZOMBIE);
leader->exit_state = EXIT_DEAD;

/*
* We are going to release_task()->ptrace_unlink() silently,
* the tracer can sleep in do_wait(). EXIT_DEAD guarantees
* the tracer wont't block again waiting for this thread.
*/
if (unlikely(leader->ptrace))
__wake_up_parent(leader, leader->parent);
write_unlock_irq(&tasklist_lock);

release_task(leader);
Expand Down

0 comments on commit 88b9645

Please sign in to comment.