文件名称:signal to killchild
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- micro*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用系统调用signal()让父进程捕捉键盘上来的中断信号(按Ctrl-C键);当捕捉到中断信号后,父进程用系统调用kill()向两个子进程发出信号,子进程捕捉到信号后分别输出下列信息后终止: Child Process 1 is Killed by Parent! Child Process 2 is Killed by Parent! 父进程等待两个子进程终止后,输出如下的信息后终止: Parent Process is Killed!-with system call signal () so that the process of capturing the father onto the keyboard interrupt signal (Ctrl-C bond); When the interrupt signal capture, the father of the process of using system calls kill () to process two signals son, the child process to capture the signal output respectively after the termination of the following information : Process is a Child Killed by Parent! Process 2 Child is Killed by Parent! the process of waiting for the father of two-after the termination process, the following information output after termination : Parent Process is Killed!
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第二次
......\homeworkb.c
......\homeworkb2.c
......\homeworkb.c
......\homeworkb2.c