Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This 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)

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

Type:void

Parameter:

TypeParameterName
struct task_struct *father
struct list_head *dead
611  If Value for the false possibility is greater at compile time(!list_empty - tests whether a list is empty*@head: the list to test.) Then exit_ptrace(father, dead)
615  reaper = find_child_reaper(father, dead)
616  If list_empty - tests whether a list is empty*@head: the list to test. Then Return
619  reaper = When we die, we re-parent all our children, and try to:* 1
621  for_each_thread(p, t)
622  Real parent process: = reaper
623  BUG_ON((!ptrace) != ( Recipient of SIGCHLD, wait4() reports: == father))
624  If Value is more likely to compile time(!ptrace) Then Recipient of SIGCHLD, wait4() reports: = Real parent process:
626  If The signal sent when the parent dies Then group_send_sig_info(The signal sent when the parent dies, These can be the second arg to send_sig_info/send_group_sig_info. , t, PIDTYPE_TGID)
635  If Not same_thread_group(reaper, father) Then Any that need to be release_task'd are put on the @dead list.
638  list_splice_tail_init - join two lists and reinitialise the emptied list*@list: the new list to add.*@head: the place to add it in the first list.* Each of the lists is a queue.* The list at @list is reinitialised
Caller
NameDescribe
exit_notifySend signals to all our closest relatives so that they know* to properly mourn us..