brash-librarian-74886
11/21/2024, 11:41 AMory/x
repo, we found these lines of code: https://github.com/ory/x/blob/f208671af4e8c43decd7a239851f9cbb5ce34794/jsonnetsecure/jsonnet_pool.go#L163-L166
func (w worker) destroy() {
close(w.stdin)
w.cmd.Process.Kill()
}
we are concerned that this cmd.Process.Kill
without also calling Cmd.Wait
might be contributing to what we are experiencing.
According to go documentation, after a successful call to Start
, the Cmd.Wait
method should be called.
Do you think this is a valid concern? I would be happy to contribute and try to fix this issue. Let me know!! Thanks in advancesteep-lamp-91158
time.Sleep
.brash-librarian-74886
11/21/2024, 2:36 PMrefined-kangaroo-48640
11/21/2024, 5:04 PMcmd.Wait()
can't hurt there, since we kill -9
the process which should be nearly instantaneous.refined-kangaroo-48640
11/21/2024, 5:04 PMrefined-kangaroo-48640
11/29/2024, 11:26 AM