Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #476 from devinus/exec-in-scripts

Use exec to replace the shell process instead of forking
  • Loading branch information...
commit 65e911e5bc17daf62fa7b4156255a483e7f56b93 2 parents 01182a2 + 8a80ead
@josevalim josevalim authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 bin/elixir
  2. +1 −1  bin/elixirc
  3. +1 −1  bin/iex
View
4 bin/elixir
@@ -67,7 +67,7 @@ if [ -f "$HOME/.elixirrc" ]; then . "$HOME/.elixirrc"; fi
if [ -f "$SCRIPT_PATH/../releases/RELEASES" ] && [ -f "$SCRIPT_PATH/erl" ]
then
- "$SCRIPT_PATH"/erl -env ERL_LIBS $ERL_LIBS:"$SCRIPT_PATH/../lib" -boot elixir -noshell $ELIXIR_ERL_OPTS $ERL -s elixir start_cli -extra "$@"
+ exec "$SCRIPT_PATH"/erl -env ERL_LIBS $ERL_LIBS:"$SCRIPT_PATH/../lib" -boot elixir -noshell $ELIXIR_ERL_OPTS $ERL -s elixir start_cli -extra "$@"
else
- erl -env ERL_LIBS $ERL_LIBS:"$SCRIPT_PATH/../lib" -noshell $ELIXIR_ERL_OPTS $ERL -s elixir start_cli -extra "$@"
+ exec erl -env ERL_LIBS $ERL_LIBS:"$SCRIPT_PATH/../lib" -noshell $ELIXIR_ERL_OPTS $ERL -s elixir start_cli -extra "$@"
fi
View
2  bin/elixirc
@@ -24,4 +24,4 @@ readlink_f () {
SELF=$(readlink_f "$0")
SCRIPT_PATH=$(dirname "$SELF")
-"$SCRIPT_PATH"/elixir --compile "$@"
+exec "$SCRIPT_PATH"/elixir --compile "$@"
View
2  bin/iex
@@ -11,4 +11,4 @@ readlink_f () {
SELF=$(readlink_f "$0")
SCRIPT_PATH=$(dirname "$SELF")
-"$SCRIPT_PATH"/elixir --no-halt -e "IEx.cli" "$@"
+exec "$SCRIPT_PATH"/elixir --no-halt -e "IEx.cli" "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.