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.
So be careful with "system" function.
相关文章推荐
- Android 进程常驻(使用第三方MarsDaemon)(虽然不可用,但是还是保留下。)
- 虽然要尽量少用,但是还是要记住这些CSS Hack
- Linux 学了很多,但是感觉还是没有把这些知识点连成一片!!查看Linux 版本内核之类的
- perl 调用外部命令之system,exec,“反引号
- 对项目的进程也有迷茫,但是美每天有几个人物还是不孤独
- php中使用exec,system等函数调用系统命令
- perl 调用外部命令之system,exec,“反引号
- 子进程调用execv函数后,对信号的处理不保留
- Linux下调用fork或system启动子进程的信号和资源释放相关问题
- php中使用exec,system等函数调用系统命令
- PHP中system,exec调用外部程序,及其参数与返回值 (转)
- 虽然不信god,但是技术上还是算是有信yan的人吧
- 虽然还是小白,但是我也要慢慢学习
- 虽然隔行如隔山但是还是得改
- Linux下调用fork或system启动子进程的信号和资源释放相关问题
- linux系统编程之进程(三):exec系列函数和system函数
- 10_26 当调用system函数时子进程与父进程对信号的处理,尤其是SIGCHLD
- PHP中调用系统命令的system(),exec(),passthr
- linux学习---进程控制(fork,vfork,popen,exec,system)
- PHP中exec,system等函数调用系统命令详解