mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-12 17:27:50 +08:00
When calling external command, wait for stopped process as well.
This commit is contained in:
parent
7839884b13
commit
2108002356
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user