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)函数,以等待子进程退出。
The first trap command causes the stopsleep function to be run whenever a SIGCHLD, SIGINT, or SIGTERM signal is received.
第一个trap命令将使stopsleep函数在接受到SIGCHLD、SIGINT或SIGTERM信号时运行。
The signal handler is called with a value of 18 (SIGCHLD), the child's exit is acknowledged, and the parent goes back to its sleep (60).
然后使用值18 (SIGCHLD)来调用信号处理程序,确认子进程的退出,并且父进程返回到sleep (60)。
The kernel handles this system call by releasing the resources owned by the process and sending the parent process a SIGCHLD signal, which is ignored by default.
核心处理这个调用的时候释放进程的全部资源并向其父进程发送SIGCHLD信号,缺省情况下这个信号是被父进程忽略的。
When you run a job in the background with default bash terminal settings, bash normally catches SIGCHLD signals and prints a message after the next terminal output line is printed.
当使用默认的bash终端设置在后台运行作业时,bash通常会捕获SIGCHLD信号并在打印下一个终端输出行之后 打印消息。
When you run a job in the background with default bash terminal settings, bash normally catches SIGCHLD signals and prints a message after the next terminal output line is printed.
当使用默认的bash终端设置在后台运行作业时,bash通常会捕获SIGCHLD信号并在打印下一个终端输出行之后 打印消息。
应用推荐