use uppercase POSIX compliant signals for the 'trap' command

In 'man 1p trap' there is written:

    "Implementations may permit names with the SIG prefix or ignore case
    in signal names as an extension."

So change the lowercase signals to uppercase, which is POSIX compliant
instead of being an extension.

There wasn't anybody claiming that it doesn't work, but there was a bug
with using a signal with the SIG prefix, which is an extension as well.
So let's play it safe and change it, since it doesn't hurt anyone.

While at it, also convert 8 indentation spaces to 1 tab character.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Markus Heidelberg
2009-01-20 00:43:26 +01:00
committed by Junio C Hamano
parent bc08fc4e85
commit 35641310af
2 changed files with 10 additions and 10 deletions

View File

@ -20,9 +20,9 @@ HTTPD_DOCUMENT_ROOT_PATH=$HTTPD_ROOT_PATH/www
if ! test -x "$LIB_HTTPD_PATH"
then
say "skipping test, no web server found at '$LIB_HTTPD_PATH'"
test_done
exit
say "skipping test, no web server found at '$LIB_HTTPD_PATH'"
test_done
exit
fi
HTTPD_VERSION=`$LIB_HTTPD_PATH -v | \
@ -84,7 +84,7 @@ prepare_httpd() {
start_httpd() {
prepare_httpd
trap 'stop_httpd; die' exit
trap 'stop_httpd; die' EXIT
"$LIB_HTTPD_PATH" -d "$HTTPD_ROOT_PATH" \
-f "$TEST_PATH/apache.conf" $HTTPD_PARA \
@ -92,7 +92,7 @@ start_httpd() {
}
stop_httpd() {
trap 'die' exit
trap 'die' EXIT
"$LIB_HTTPD_PATH" -d "$HTTPD_ROOT_PATH" \
-f "$TEST_PATH/apache.conf" -k stop