Skip to content

Commit 38499a0

Browse files
author
Liam White
authored
handle successful envoy return codes (#71)
Signed-off-by: Liam White <[email protected]>
1 parent 733251c commit 38499a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/binary/envoy/termination.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import (
2323

2424
func (r *Runtime) handleTermination() {
2525
if r.cmd.ProcessState != nil {
26+
if r.cmd.ProcessState.Success() {
27+
log.Infof("Envoy process (PID=%d) exited successfully", r.cmd.Process.Pid)
28+
return
29+
}
2630
log.Infof("Envoy process (PID=%d) terminated prematurely", r.cmd.Process.Pid)
2731
return
2832
}

0 commit comments

Comments
 (0)