diff options
author | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2009-02-17 23:10:28 +0000 |
---|---|---|
committer | fergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917> | 2009-02-17 23:10:28 +0000 |
commit | 43b59aeba1c4db52e047000b305f5fe622a92bde (patch) | |
tree | 9f61b4901831ec2f505f2e7cce24f71b2f166fa0 | |
parent | fba6586a129bba97a9ba0ece0a26f52ae35c4475 (diff) | |
download | distcc-43b59aeba1c4db52e047000b305f5fe622a92bde.tar.gz |
Fix a non-portability in rpm.sh:
use "trap ... HUP" rather than "trap ... SIGHUP".
The Posix.1 standard <http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#trap>
says:
The condition can be EXIT, 0 (equivalent to EXIT), or a signal specified
using a symbolic name, without the SIG prefix, as listed in the tables
of signal names in the <signal.h> header [...]; for example, HUP, INT,
QUIT, TERM. Implementations may permit names with the SIG prefix or
ignore case in signal names as an extension.
Previously, the code was relying on this optional extension.
git-svn-id: http://distcc.googlecode.com/svn/trunk@660 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-x | packaging/rpm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/rpm.sh b/packaging/rpm.sh index 72fc0d5..75adef7 100755 --- a/packaging/rpm.sh +++ b/packaging/rpm.sh @@ -59,7 +59,7 @@ fi RPM_SOURCE_DIR="/tmp/rpmsource-$fullname" RPM_BUILD_DIR="/tmp/rpmbuild-$fullname" -trap 'rm -rf $RPM_SOURCE_DIR $RPM_BUILD_DIR; exit $?' EXIT SIGHUP SIGINT SIGTERM +trap 'rm -rf $RPM_SOURCE_DIR $RPM_BUILD_DIR; exit $?' EXIT HUP INT TERM rm -rf "$RPM_SOURCE_DIR" "$RPM_BUILD_DIR" mkdir "$RPM_SOURCE_DIR" |