Let's now send a SIGTERM to the parent process.
现在,向父进程发送一个SIGTERM。
The following sample program uses the SIGTERM signal.
下面这个示例程序使用了 SIGTERM 信号。
If you omit the signal specification, then SIGTERM is the default signal.
如果没有查看信号规范,那么这里稍作说明:SIGTERM是默认信号。
Off: If the process is currently running, send the signal SIGTERM, then SIGKILL in 20 seconds.
off:如果目前进程正在运行,则发送信号SIGTERM,并在20秒后发送SIGKILL。
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信号时运行。
Using this data, a process can terminate itself after finishing the execution of a critical part of the code (if started) as long as it gets a SIGTERM signal in the middle.
使用这些数据,进程如果在运行过程中接收到一个SIGTERM信号,就可以在执行完关键代码(如果已经启动)之后自行终止。
Using this data, a process can terminate itself after finishing the execution of a critical part of the code (if started) as long as it gets a SIGTERM signal in the middle.
使用这些数据,进程如果在运行过程中接收到一个SIGTERM信号,就可以在执行完关键代码(如果已经启动)之后自行终止。
应用推荐