修改进程默认退出信号

This commit is contained in:
whyour
2022-12-05 21:00:14 +08:00
parent acecf01cbe
commit 10fab9d415
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ dir_shell=$QL_DIR/shell
. $dir_shell/share.sh
. $dir_shell/api.sh
trap "single_hanle" 2 20 15
trap "single_hanle" 2 20 15 14
single_hanle() {
handle_task_after "$@"
exit 1
+1 -1
View File
@@ -56,7 +56,7 @@ format_params() {
time_format="%Y-%m-%d %H:%M:%S"
timeoutCmd=""
if type timeout &>/dev/null; then
timeoutCmd="timeout --foreground -s 2 -k 10s $command_timeout_time "
timeoutCmd="timeout --foreground -s 14 -k 10s $command_timeout_time "
fi
params=$(echo "$@" | sed -E 's/([^ ])&([^ ])/\1\\\&\2/g')
}