Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86670
b: refs/heads/master
c: 821c7de
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Mar 3, 2008
1 parent a22b343 commit fabc006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 05e83df624fe682bb8571cdb2c6d5284a99c3066
refs/heads/master: 821c7de7194e77afee1a69d50830a329a6d9af9f
7 changes: 4 additions & 3 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ static void forget_original_parent(struct task_struct *father)
* Send signals to all our closest relatives so that they know
* to properly mourn us..
*/
static void exit_notify(struct task_struct *tsk)
static void exit_notify(struct task_struct *tsk, int group_dead)
{
int state;

Expand All @@ -766,7 +766,8 @@ static void exit_notify(struct task_struct *tsk)
exit_task_namespaces(tsk);

write_lock_irq(&tasklist_lock);
kill_orphaned_pgrp(tsk, NULL);
if (group_dead)
kill_orphaned_pgrp(tsk->group_leader, NULL);

/* Let father know we died
*
Expand Down Expand Up @@ -981,7 +982,7 @@ NORET_TYPE void do_exit(long code)
module_put(tsk->binfmt->module);

proc_exit_connector(tsk);
exit_notify(tsk);
exit_notify(tsk, group_dead);
#ifdef CONFIG_NUMA
mpol_free(tsk->mempolicy);
tsk->mempolicy = NULL;
Expand Down

0 comments on commit fabc006

Please sign in to comment.