mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-tests: Improve signal handling trap
Interrupting a test run currently moves on to the next test. It should exit. Follow the practice of exiting with 128 + signal number. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
92337234e5
commit
aa2ee4bea8
@ -284,7 +284,8 @@ do_cleanup ()
|
||||
fi
|
||||
}
|
||||
|
||||
trap do_cleanup SIGINT SIGTERM
|
||||
trap "do_cleanup ; exit 130" SIGINT
|
||||
trap "do_cleanup ; exit 143" SIGTERM
|
||||
|
||||
declare -a tests
|
||||
i=0
|
||||
|
Loading…
Reference in New Issue
Block a user