Function report |
Source Code:kernel\exit.c |
Create Date:2022-07-28 09:03:09 |
Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:When we die, we re-parent all our children, and try to:* 1
Proto:static struct task_struct *find_new_reaper(struct task_struct *father, struct task_struct *child_reaper)
Type:struct task_struct
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | father | |
struct task_struct * | child_reaper |
544 | thread = find_alive_thread(father) |
548 | If has_child_subreaper Then |
563 | If Not is_child_subreaper Then Continue |
565 | thread = find_alive_thread(reaper) |
571 | Return child_reaper |
Name | Describe |
---|---|
forget_original_parent | 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) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |