1
0
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:
Martin Schwenke 2018-10-08 13:39:30 +11:00 committed by Amitay Isaacs
parent 92337234e5
commit aa2ee4bea8

View File

@ -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