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。清除所有挂起的信号,调用进程捕获的信号集恢复至缺省状态?