From 667bb132208a77ee8d940849215d30ff35cd2eeb Mon Sep 17 00:00:00 2001 From: "Victor \"Nate\" Graf" Date: Tue, 18 Feb 2020 14:16:50 -0800 Subject: [PATCH] Use exec in geth start script to pass signals correctly (#868) --- scripts/run_geth_in_docker.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/run_geth_in_docker.sh b/scripts/run_geth_in_docker.sh index 03b98478d85d..2e16e3fde7c6 100755 --- a/scripts/run_geth_in_docker.sh +++ b/scripts/run_geth_in_docker.sh @@ -1,11 +1,5 @@ -# allow exiting using CTRL + C -exit_func() { - echo "Exiting..." - exit 1 -} -trap exit_func SIGTERM SIGINT - +# Prevent error related to running geth without a tty # 150 is an arbitrary choice, which seems good enough stty cols 150 sleep 1 -geth "$@" +exec geth "$@"