mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
Terminate the stub before -exec.
This commit is contained in:
parent
6fbadd6f31
commit
e6c44bdbdd
|
@ -673,6 +673,9 @@ func _exec(ec *EvalCtx, args ...string) {
|
|||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
}
|
||||
if ec.Stub != nil {
|
||||
ec.Stub.Terminate()
|
||||
}
|
||||
err = syscall.Exec(args[0], args, os.Environ())
|
||||
maybeThrow(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user