When a child process dies, its parent is notified with a signal called SIGCHLD.
当子进程终止时,会使用一个名为SIGCHLD的信号来通知其父进程。
The code in Listing 8 implements a signal handler to deal with the incoming SIGCHLD signal.
清单8中的代码实现了一个处理传入的SIGCHLD信号的信号处理程序。
For the SIGCHLD signal, the application must call the wait (3c) function to wait for the child process to exit.
对于SIGCHLD信号,应用程序必须调用wait (3c)函数,以等待子进程退出。
应用推荐