diff --git a/priv/libexec/commands/foreground.sh b/priv/libexec/commands/foreground.sh index b1b8bbb6..53ee17ce 100755 --- a/priv/libexec/commands/foreground.sh +++ b/priv/libexec/commands/foreground.sh @@ -41,5 +41,5 @@ post_start_fg() { run_hooks post_start } -post_start_fg & +(post_start_fg &) erlexec "$@" -- "${1+$ARGS}"