When calling external command, wait for stopped process as well.

This commit is contained in:
Qi Xiao 2016-02-21 23:01:30 +01:00
parent 7839884b13
commit 2108002356

View File

@ -77,7 +77,7 @@ func (e ExternalCmd) Call(ec *EvalCtx, argVals []Value) {
}
var ws syscall.WaitStatus
_, err = syscall.Wait4(pid, &ws, 0, nil)
_, err = syscall.Wait4(pid, &ws, syscall.WUNTRACED, nil)
if err != nil {
throw(fmt.Errorf("wait: %s", err.Error()))
} else {