|
|
@ -289,8 +289,8 @@ func (c *Cmd) run() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
c.stdIn, _ = cmd.StdinPipe()
|
|
|
|
c.stdIn, _ = cmd.StdinPipe()
|
|
|
|
|
|
|
|
|
|
|
|
c.Env = cmd.Env
|
|
|
|
cmd.Env = c.Env
|
|
|
|
c.Dir = cmd.Dir
|
|
|
|
cmd.Dir = c.Dir
|
|
|
|
|
|
|
|
|
|
|
|
// Always close output streams. Do not do this after Wait because if Start
|
|
|
|
// Always close output streams. Do not do this after Wait because if Start
|
|
|
|
// fails and we return without closing these, it could deadlock the caller
|
|
|
|
// fails and we return without closing these, it could deadlock the caller
|
|
|
|