Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95151
b: refs/heads/master
c: 2800d8d
h: refs/heads/master
i:
  95149: b336de2
  95147: de5fbb1
  95143: a4f1f1a
  95135: 3c51f92
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Apr 30, 2008
1 parent 91644d9 commit 7dedeb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 376e1d2531860358c8a79fecf5f4f42994d03c4d
refs/heads/master: 2800d8d19e51414403df8144eaa214bb03400b87
2 changes: 1 addition & 1 deletion trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ static int de_thread(struct task_struct *tsk)
if (!thread_group_leader(tsk)) {
leader = tsk->group_leader;

sig->notify_count = -1;
sig->notify_count = -1; /* for exit_notify() */
for (;;) {
write_lock_irq(&tasklist_lock);
if (likely(leader->exit_state))
Expand Down
1 change: 1 addition & 0 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
state = EXIT_DEAD;
tsk->exit_state = state;

/* mt-exec, de_thread() is waiting for us */
if (thread_group_leader(tsk) &&
tsk->signal->notify_count < 0 &&
tsk->signal->group_exit_task)
Expand Down

0 comments on commit 7dedeb5

Please sign in to comment.