Skip to content

Commit 4612c12

Browse files
authored
Fix run process become a zombie. (#293)
1 parent 8a2d83a commit 4612c12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runner/engine.go

+1
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ func (e *Engine) runBin() error {
434434
go func() {
435435
_, _ = io.Copy(os.Stdout, stdout)
436436
_, _ = io.Copy(os.Stderr, stderr)
437+
_, _ = cmd.Process.Wait()
437438
}()
438439

439440
killFunc := func(cmd *exec.Cmd, stdout io.ReadCloser, stderr io.ReadCloser) {

0 commit comments

Comments
 (0)