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:
Russ Cox 2009-05-15 10:32:05 -07:00
parent a854c7f993
commit b725e32c99
4 changed files with 41 additions and 6 deletions

View file

@ -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;
}