Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
dev: deal with exiting with crashed processes
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Sep 10, 2024
1 parent a1b8728 commit 6128d74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/sst/mosaic/multiplexer/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func (p *process) start() error {
}

func (p *process) Kill() {
util.TerminateProcess(p.cmd.Process.Pid)
if p.cmd != nil && p.cmd.Process != nil {
util.TerminateProcess(p.cmd.Process.Pid)
}
p.vt.Close()
}

Expand Down

0 comments on commit 6128d74

Please sign in to comment.