Skip to content

Commit b19c726

Browse files
author
Miccah Castorina
committed
Exit parent if the child successfully exited
1 parent 9e6aff0 commit b19c726

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)