Skip to content

Commit

Permalink
playground: make sure to signal tiproxy to stop (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Nov 15, 2023
1 parent bff409d commit 520c05a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,11 @@ func (p *Playground) terminate(sig syscall.Signal) {
kill(inst.Component(), inst.Pid(), inst.Wait)
}
}
for _, inst := range p.tiproxys {
if inst.Process != nil && inst.Process.Cmd() != nil && inst.Process.Cmd().Process != nil {
kill(inst.Component(), inst.Pid(), inst.Wait)
}
}
}

func (p *Playground) renderSDFile() error {
Expand Down

0 comments on commit 520c05a

Please sign in to comment.