Skip to content

Commit

Permalink
build: abort configure scripts upon interrupts
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Jan 26, 2018
1 parent 45f5446 commit 30f13eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30f13eb

Please sign in to comment.