CTRL+C异常捕获
trap ‘onCtrlC’ INT
function onCtrlC () {
echo ‘Ctrl+C is captured’
echo ‘Program exit exceptionally ,You can rerun the script!’
exit 1
}
文章标签 捕获ctrl+c异常 异常捕获 文章分类 后端开发
trap ‘onCtrlC’ INT
function onCtrlC () {
echo ‘Ctrl+C is captured’
echo ‘Program exit exceptionally ,You can rerun the script!’
exit 1
}
上一篇:PG之可写的CTE
Node 支持信号事件,要捕获 Ctrl+C ,只要注册SIGINT信号事件就可以捕获 Ctrl+C。mingd
当我们准备去杀死一个进程时,从程序设计的本身来考虑,我们应当要设计一定的保护方案来确保程序被非正常
重写 WndProc[代码]
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M