Fix trap() and prog_exit() so it exits correctly
Fixes #282 Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
parent
6351d321a3
commit
4b3eba59a3
@ -1621,7 +1621,11 @@ done
|
|||||||
vars_setup
|
vars_setup
|
||||||
|
|
||||||
# Register clean_temp and prog_exit on SIGHUP, SIGINT, SIGQUIT, and SIGABRT
|
# Register clean_temp and prog_exit on SIGHUP, SIGINT, SIGQUIT, and SIGABRT
|
||||||
trap "clean_temp; prog_exit" 0 1 2 3 6
|
trap "clean_temp; prog_exit 1" 1
|
||||||
|
trap "clean_temp; prog_exit 2" 2
|
||||||
|
trap "clean_temp; prog_exit 3" 3
|
||||||
|
trap "clean_temp; prog_exit 6" 6
|
||||||
|
trap "clean_temp; prog_exit 15" 15
|
||||||
|
|
||||||
# determine how we were called, then hand off to the function responsible
|
# determine how we were called, then hand off to the function responsible
|
||||||
cmd="$1"
|
cmd="$1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user