Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\exit.c Create Date:2022-07-28 09:03:10
Last Modify:2020-03-17 11:17:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Any that need to be release_task'd are put on the @dead list.

Proto:static void reparent_leader(struct task_struct *father, struct task_struct *p, struct list_head *dead)

Type:void

Parameter:

TypeParameterName
struct task_struct *father
struct task_struct *p
struct list_head *dead
580  If Value for the false possibility is greater at compile time(exit state == Used in tsk->exit_state: ) Then Return
584  exit signal = SIGCHLD
587  If Not ptrace && exit state == EXIT_ZOMBIE && thread_group_empty(p) Then
589  If do_notify_parent(p, exit signal) Then
595  Check to see if any process groups have become orphaned as* a result of our exiting, and if they have any stopped jobs,* send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2)
Caller
NameDescribe
forget_original_parentThis does two things:* A. Make init inherit all the child processes* B. Check to see if any process groups have become orphaned* as a result of our exiting, and if they have any stopped* jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2)