Remove SIG prefix from trapped signals
Makes traps functional if running under shells/dash
This commit is contained in:
parent
9e81c4fb73
commit
d1eef61dae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295196
@ -1,7 +1,7 @@
|
||||
if [ ! "$_COMMON_SUBR" ]; then _COMMON_SUBR=1
|
||||
#
|
||||
# Copyright (c) 2012 Ron McDowell
|
||||
# Copyright (c) 2012-2015 Devin Teske
|
||||
# Copyright (c) 2012-2016 Devin Teske
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
@ -1015,10 +1015,9 @@ f_count_ifs()
|
||||
#
|
||||
# Trap signals so we can recover gracefully
|
||||
#
|
||||
trap 'f_interrupt' SIGINT
|
||||
trap 'f_die' SIGTERM SIGPIPE SIGXCPU SIGXFSZ \
|
||||
SIGFPE SIGTRAP SIGABRT SIGSEGV
|
||||
trap '' SIGALRM SIGPROF SIGUSR1 SIGUSR2 SIGHUP SIGVTALRM
|
||||
trap 'f_interrupt' INT
|
||||
trap 'f_die' TERM PIPE XCPU XFSZ FPE TRAP ABRT SEGV
|
||||
trap '' ALRM PROF USR1 USR2 HUP VTALRM
|
||||
|
||||
#
|
||||
# Clone terminal stdout/stderr so we can redirect to it from within sub-shells
|
||||
|
Loading…
Reference in New Issue
Block a user