-
Listing 1 shows how to ignore a SIGINT.
清单1显示了如何忽略一个SIGINT信号。
-
This sends the SIGINT to the process to kill it.
这样发送SIGINT信号给进程杀死它。
-
Lets now look at a bare bones script that catches SIGINT and SIGQUIT.
现在,让我们来看一个只包含基本内容的脚本,它将捕捉SIGINT和SIGQUIT信号。
-
It prints a status message and sends the sleep command a SIGINT signal.
它将打印状态信息并将sleep命令发送给SIGINT信号。
-
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信号时运行。