mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
add directory argument to os.ForkExec
R=iant DELTA=41 (35 added, 0 deleted, 6 changed) OCL=28892 CL=28895
This commit is contained in:
parent
a854c7f993
commit
b725e32c99
4 changed files with 41 additions and 6 deletions
|
|
@ -96,7 +96,7 @@ func Run(argv0 string, argv, envv []string, stdin, stdout, stderr int) (p *Cmd,
|
|||
}
|
||||
|
||||
// Run command.
|
||||
p.Pid, err = os.ForkExec(argv0, argv, envv, &fd);
|
||||
p.Pid, err = os.ForkExec(argv0, argv, envv, "", &fd);
|
||||
if err != nil {
|
||||
goto Error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue