Skip to content

Commit 4fef068

Browse files
authored
Merge pull request #3 from trufflesecurity/restart-only-on-error
Exit parent if the child successfully exited
2 parents 9e6aff0 + b19c726 commit 4fef068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proc_parent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (mp *parent) fork() error {
419419
//unexpected crash, proxy this exit straight
420420
//through to the main process
421421
if mp.NoRestart || !mp.restarting {
422-
if !mp.Supervise {
422+
if !mp.Supervise || code == 0 {
423423
os.Exit(code)
424424
}
425425
mp.fork()

0 commit comments

Comments
 (0)