diff options
author | Bruno Haible <bruno@clisp.org> | 2022-11-26 17:37:33 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-11-26 17:37:33 +0100 |
commit | c308fd01b5183dcfb7156d8f05dc67649f9a51a7 (patch) | |
tree | 44eaa397a8e57e76e8a1d3458a8df3b8a6a5b254 /Admin/gen-uni-tables | |
parent | e21904361e979740ad6a36fe8feb2e20baa0e4b1 (diff) | |
download | libunistring-c308fd01b5183dcfb7156d8f05dc67649f9a51a7.tar.gz |
In 'trap' commands, prefer symbolic to numeric signal names.
Diffstat (limited to 'Admin/gen-uni-tables')
-rwxr-xr-x | Admin/gen-uni-tables | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Admin/gen-uni-tables b/Admin/gen-uni-tables index d86787a..e6cd7dc 100755 --- a/Admin/gen-uni-tables +++ b/Admin/gen-uni-tables @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2015-2021 Free Software Foundation, Inc. +# Copyright (C) 2015-2022 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -79,15 +79,15 @@ test -n "$UCD" || \ func_tmpdir trap 'exit_status=$? - if test "$signal" != 0; then - echo "caught signal $signal" >&2 + if test "$signal" != EXIT; then + echo "caught signal SIG$signal" >&2 fi rm -rf "$tmp" - exit $exit_status' 0 -for signal in 1 2 3 13 15; do + exit $exit_status' EXIT +for signal in HUP INT QUIT PIPE TERM; do trap '{ signal='$signal'; func_exit 1; }' $signal done -signal=0 +signal=EXIT # Compile lib/gen-uni-tables.c in a temporary directory : ${CC=gcc} |