diff options
author | Russ Cox <rsc@golang.org> | 2009-02-15 22:12:35 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-02-15 22:12:35 -0800 |
commit | 9e82afc63c4054fbfbf78f8130e47618a333bc8e (patch) | |
tree | 326692bcb59c0cfe97f2df78d593091c913c713d /src/lib/os/exec.go | |
parent | c9eec80905e1fc250a11c1dc90dd6af546c39822 (diff) | |
download | golang-9e82afc63c4054fbfbf78f8130e47618a333bc8e.tar.gz |
assorted changes:
- use a lock instead of a thread in once
avoids deadlock in recursive once calls
- implement os.Setenv
- remove "export" from some scripts
- remove _ from names in time package
- fix time test for non-MTV machines
R=r
DELTA=265 (87 added, 58 deleted, 120 changed)
OCL=25057
CL=25057
Diffstat (limited to 'src/lib/os/exec.go')
-rw-r--r-- | src/lib/os/exec.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/os/exec.go b/src/lib/os/exec.go index 0ce51773c..44e70cbbe 100644 --- a/src/lib/os/exec.go +++ b/src/lib/os/exec.go @@ -27,6 +27,9 @@ func ForkExec(argv0 string, argv []string, envv []string, fd []*FD) } func Exec(argv0 string, argv []string, envv []string) *Error { + if envv == nil { + envv = Environ(); + } e := syscall.Exec(argv0, argv, envv); return ErrnoToError(e); } |