Whenever a handled signal is received by a process, the function assigned through sigset is called.
每当进程接收到某个已处理的信号时,就会调用通过sigset分配的函数。
The function call sigsuspend resolves this problem by resetting the signal mask and putting the process to sleep in a single atomic operation.
函数调用sigsuspend通过重置信号掩码并使进程休眠一个单一的原子操作来解决这一问题。
For the SIGCHLD signal, the application must call the wait (3c) function to wait for the child process to exit.
对于SIGCHLD信号,应用程序必须调用wait (3c)函数,以等待子进程退出。
应用推荐