Skip to content

Commit

Permalink
Use exec in geth start script to pass signals correctly (ethereum#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor "Nate" Graf authored Feb 18, 2020
1 parent 6448359 commit 667bb13
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/run_geth_in_docker.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 667bb13

Please sign in to comment.