summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorAnton Titov <[email protected]>2019-12-23 14:52:06 +0300
committerGitHub <[email protected]>2019-12-23 14:52:06 +0300
commit921e1f55e23ab75b8250045916c8d1ffad1b8bde (patch)
tree00b16331b9ff3b3b846ba22989dddde721cc959d /worker.go
parent921354df1aa4687837e3ba6ac0eb04d39321c149 (diff)
parent2093cb9058f94668fff0a97beb76b0cab66c7b63 (diff)
Merge branch 'master' into Fix_warning_and_issues
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/worker.go b/worker.go
index a10d36d6..f31929bf 100644
--- a/worker.go
+++ b/worker.go
@@ -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
}
}