免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1030 | 回复: 1
打印 上一主题 下一主题

[内核模块] Ulk Process Chapter 3 [复制链接]

论坛徽章:
1
双子座
日期:2014-05-02 22:43:41
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-04-26 11:29 |只看该作者 |倒序浏览
ULK中。
3.5.1.2. The do_exit( ) function
Checks whether the exit_signal process descriptor field of the process being terminated
is different from -1, and whether the process is the last member of its thread group
(notice that these conditions always hold for any normal process; see step 16 in the
description of copy_process( ) in the earlier section "The clone( ), fork( ), and vfork( )
System Calls"). In this case, the function sends a signal (usually SIGCHLD) to the parent of
the process being terminated to notify the parent about a child's death.

想知道 exit_signal 是什么时候被设置的。难道是在调用c函数库的_exit(-1),还是函数错误的返回码也包含在内的返回值也放在task_struct 的对应field.

论坛徽章:
1
双子座
日期:2014-05-02 22:43:41
2 [报告]
发表于 2014-04-26 12:06 |只看该作者
I learned that.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP