Skip to content

Commit

Permalink
fix: wait for jsonnet command to exit when removing from process pool
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Nov 26, 2024
1 parent aebc27e commit be229ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsonnetsecure/jsonnet_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func newWorker(ctx context.Context) (_ worker, err error) {
func (w worker) destroy() {
close(w.stdin)
w.cmd.Process.Kill()
w.cmd.Wait()
}

func (w worker) eval(ctx context.Context, processParams []byte) (output string, err error) {
Expand Down

0 comments on commit be229ce

Please sign in to comment.