Skip to content

Commit

Permalink
waits for agent process to fully exit
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhang93 committed May 12, 2024
1 parent ad468e9 commit 208096c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/reload_loop.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func reloadProcs(root context.Context, configPath string, starters procStarters)
agentWG.Done()
}()
case err := <-errCh:
agentWG.Wait()
lastAgentErr = err
if fatal.Is(err) {
cancel(err)
Expand Down

0 comments on commit 208096c

Please sign in to comment.