您的位置:首页 > 其它

system调用虽然用了exec,但是fd, signal这些还是会保留父进程的,be careful

2011-03-26 10:02 344 查看
lthough system uses "fork" & "exec" function to replace the whole process address space, but in child process, the FDs will still be inherited from parent process. About whether signals are inheritted, I'm not sure but seems it's very possible.

So be careful with "system" function.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: