aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-01-24 20:25:05 +0100
committerMarc André Tanner <mat@brain-dump.org>2018-01-26 20:06:53 +0100
commit30f13eb60e8e9a7333051709bda758f8ee442151 (patch)
treeb3785d8bb2f8e131fb359e888aab22bc8a00ddcd
parent45f5446d2a243811a2b02927e05e3993d09e7361 (diff)
downloadvis-30f13eb60e8e9a7333051709bda758f8ee442151.tar.gz
vis-30f13eb60e8e9a7333051709bda758f8ee442151.tar.xz
build: abort configure scripts upon interrupts
Fix #607
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 9b867cd..d31456b 100755
--- a/configure
+++ b/configure
@@ -190,7 +190,8 @@ tmpo="./conf$$-$PPID-$i.o"
test "$i" -gt 50 && fail "$0: cannot create temporary file $tmpc"
done
set +C
-trap 'rm -f "$tmpc" "$tmpo"' EXIT INT QUIT TERM HUP
+trap 'rm -f "$tmpc" "$tmpo"' EXIT QUIT TERM HUP
+trap 'rm -f "$tmpc" "$tmpo" && echo && fail "$0: interrupted"' INT
#
# Find a C compiler to use