Skip to content

Commit d71b90e

Browse files
Fushuai Wangakpm00
authored andcommitted
exit: fix misleading comment in forget_original_parent()
The commit 482a376 ("exit: reparent: call forget_original_parent() under tasklist_lock") moved the comment from exit_notify() to forget_original_parent(). However, the forget_original_parent() only handles (A), while (B) is handled in kill_orphaned_pgrp(). So remove the unrelated part. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Fushuai Wang <[email protected]> Acked-by: Oleg Nesterov <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: Christian Brauner <[email protected]> Cc: Mateusz Guzik <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Pasha Tatashin <[email protected]> Cc: wangfushuai <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent ad2c807 commit d71b90e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

kernel/exit.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -692,12 +692,7 @@ static void reparent_leader(struct task_struct *father, struct task_struct *p,
692692
}
693693

694694
/*
695-
* This does two things:
696-
*
697-
* A. Make init inherit all the child processes
698-
* B. Check to see if any process groups have become orphaned
699-
* as a result of our exiting, and if they have any stopped
700-
* jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2)
695+
* Make init inherit all the child processes
701696
*/
702697
static void forget_original_parent(struct task_struct *father,
703698
struct list_head *dead)

0 commit comments

Comments
 (0)