Chinaunix首页 | 论坛 | 博客
  • 博客访问: 66581
  • 博文数量: 30
  • 博客积分: 1260
  • 博客等级: 中尉
  • 技术积分: 285
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-03 12:27
文章分类

全部博文(30)

文章存档

2010年(30)

我的朋友

分类:

2010-06-25 17:50:21

execve() does not return on success, and the text, data, bss, and stack of the calling process are overwritten by that of the program loaded. The program invoked inherits the calling process's PID, and any open file descriptors that are not set to close-on-exec. Signals pending on the calling process are cleared. Any signals set to be caught by the calling process are reset to their default behaviour. The SIGCHLD signal (when set to SIG_IGN) may or may not be reset to SIG_DFL.

总结:

1。重置bss(未初始化数据区)、data、text及堆栈区

2。继承调用进程的PID,以及任何打开的文件描述符

3。清除所有挂起的信号,调用进程捕获的信号集恢复至缺省状态?

阅读(540) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~