Skip to content

Commit

Permalink
Merge pull request #3 from trufflesecurity/restart-only-on-error
Browse files Browse the repository at this point in the history
Exit parent if the child successfully exited
  • Loading branch information
mcastorina authored Aug 31, 2022
2 parents 9e6aff0 + b19c726 commit 4fef068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proc_parent.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func (mp *parent) fork() error {
//unexpected crash, proxy this exit straight
//through to the main process
if mp.NoRestart || !mp.restarting {
if !mp.Supervise {
if !mp.Supervise || code == 0 {
os.Exit(code)
}
mp.fork()
Expand Down

0 comments on commit 4fef068

Please sign in to comment.