summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
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
}
}