函数逻辑报告 |
Source Code:kernel\exit.c |
Create Date:2022-07-27 10:02:54 |
Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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)
函数原型:static void forget_original_parent(struct task_struct *father, struct list_head *dead)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | father | |
struct list_head * | dead |
611 | 如果此条件成立可能性小(为编译器优化)(!链表为空)则exit_ptrace(father, dead) |
615 | reaper等于find_child_reaper(father, dead) |
616 | 如果链表为空则返回 |
621 | for_each_thread(p, t) |
623 | BUG_ON((!ptrace) != ( Recipient of SIGCHLD, wait4() reports: == father)) |
635 | 如果非same_thread_group(reaper, father)则Any that need to be release_task'd are put on the @dead list. |
638 | 加入二个链表项并重新初始化 |
名称 | 描述 |
---|---|
exit_notify | Send signals to all our closest relatives so that they know* to properly mourn us.. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |