summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2017-06-24 20:35:59 +0200
committerNico Huber <nico.h@gmx.de>2017-06-27 18:24:10 +0000
commit18c74d69af2a5beb60da78301b5fa4d17d75be47 (patch)
tree76d141d92ef0b55570ae28807548b9254c1d75dd
parent8d29dd12580add6fc7e87c9e935165da50cfc67b (diff)
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 <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/20391 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rwxr-xr-xutil/crossgcc/buildgcc4
1 files changed, 2 insertions, 2 deletions
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:.