...文件ex3.c中实例中的并发程序由三个进程组成:初始进程和两个通过系统调用create启动的进程。前文提到当控制到达主程序代码末尾时,初始进程停止执行。我们使用术语进程退出(process exit)来描述这种情形。每个进程从一个函数的开头开始执行。
基于16个网页-相关网页
Puts a probe on the exit system call to exit when the process exits.
在exit系统调用上设置探查,从而在进程退出时退出。
When a shell script process exits or returns to the parent process, the exit code should be 0.
当shell脚本进程退出或返回到父进程时,退出码应该是0。
Because when then forked process exit, it will close the connection it copied, which is the same connection its parent process is using, this may interrupt the parent process.
因为当时的分叉进程退出,它将关闭它的复制连接,这是相同的连接它的父进程正在使用,这可能会中断进程的父进程。
应用推荐