From 18c74d69af2a5beb60da78301b5fa4d17d75be47 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sat, 24 Jun 2017 20:35:59 +0200 Subject: buildgcc: Rename quit() to exit_handler() "quit" is a signal name. The FreeBSD `sh` interprets trap quit 1 2 3 15 as command to reset all the respective signal handlers, instead of setting quit() as handler. Change-Id: I69b813ab583f15a9dd89a115f7aea66d966f981b Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/20391 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/crossgcc/buildgcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/crossgcc') diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index fdf8906151..4d269d3f38 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -431,7 +431,7 @@ build() fi } -quit() +exit_handler() { printf "${NC}Stop\n" exit 1 @@ -807,7 +807,7 @@ print_supported() { esac } -trap quit 1 2 3 15 +trap exit_handler 1 2 3 15 # Look if we have getopt. If not, build it. export PATH=$PATH:. -- cgit v1.2.3