函数逻辑报告 |
Source Code:kernel\exit.c |
Create Date:2022-07-27 10:02:53 |
Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Any that need to be release_task'd are put on the @dead list.
函数原型:static void reparent_leader(struct task_struct *father, struct task_struct *p, struct list_head *dead)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | father | |
struct task_struct * | p | |
struct list_head * | dead |
580 | 如果此条件成立可能性小(为编译器优化)(进程退出时状态 == Used in tsk->exit_state: )则返回 |
584 | 进程退出时发出的信号等于SIGCHLD |
587 | 如果非ptrace且进程退出时状态恒等于EXIT_ZOMBIE且thread_group_empty(p)则 |
589 | 如果do_notify_parent(p, 进程退出时发出的信号)则 |
591 | 添加链表项 |
名称 | 描述 |
---|---|
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) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |