diff options
author | Anton Titov <[email protected]> | 2019-12-23 14:52:06 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-23 14:52:06 +0300 |
commit | 921e1f55e23ab75b8250045916c8d1ffad1b8bde (patch) | |
tree | 00b16331b9ff3b3b846ba22989dddde721cc959d /worker.go | |
parent | 921354df1aa4687837e3ba6ac0eb04d39321c149 (diff) | |
parent | 2093cb9058f94668fff0a97beb76b0cab66c7b63 (diff) |
Merge branch 'master' into Fix_warning_and_issues
Diffstat (limited to 'worker.go')
-rw-r--r-- | worker.go | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -106,14 +106,8 @@ func (w *Worker) Wait() error { if runtime.GOOS != "windows" { // windows handles processes and close pipes differently, // we can ignore wait here as process.Wait() already being handled above - var ws syscall.WaitStatus - _, err := syscall.Wait4(w.cmd.Process.Pid, &ws, syscall.WALL, nil) - if err != nil { - if ws.Exited() { - return nil - } else { - return err - } + if err := w.cmd.Wait(); err != nil { + return err } } |