Skip to content

Commit

Permalink
Exit if dataplaneapi terminates
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Gilles committed Sep 25, 2019
1 parent 930b690 commit 55bff42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haproxy/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func runCommand(sd *lib.Shutdown, stopSig syscall.Signal, path string, args ...s
atomic.StoreUint32(&exited, 1)
if err != nil {
log.Errorf("%s exited with error: %s", path, err)
sd.Shutdown(fmt.Sprintf("%s exited with error %s", path, err))
} else {
log.Errorf("%s exited", path)
}
sd.Shutdown(fmt.Sprintf("%s exited", path))
}()
go func() {
<-sd.Stop
Expand Down

0 comments on commit 55bff42

Please sign in to comment.