Skip to content

Commit

Permalink
Stop post start subshell ending up as a zombie (#675)
Browse files Browse the repository at this point in the history
foreground.sh: Double detach the post_start subshell to ensure it is
reaped properly by 'init' after it has completed and avoid a zombie
process hanging around.
  • Loading branch information
NeilW authored and bitwalker committed Jun 25, 2019
1 parent 86781d0 commit 47cbbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/libexec/commands/foreground.sh
Expand Up @@ -41,5 +41,5 @@ post_start_fg() {
run_hooks post_start
}

post_start_fg &
(post_start_fg &)
erlexec "$@" -- "${1+$ARGS}"

0 comments on commit 47cbbfb

Please sign in to comment.