diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2011-01-12 11:48:15 +1100 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2011-01-12 11:48:15 +1100 |
| commit | a41d85498eed6b606d261e3da84c760538d71b4f (patch) | |
| tree | de37126515b85312a9bd61c1db4601ff291fe8f6 /src/pkg/runtime/linux/thread.c | |
| parent | 217693e93c23fed2f3224dfaf1eb730d8e5256bb (diff) | |
| download | go-a41d85498eed6b606d261e3da84c760538d71b4f.tar.xz | |
runtime: revert 6974:1f3c3696babb
I missed that environment is used during runtime setup,
well before go init() functions run. Implemented os-dependent
runtime.goenvs functions to allow for different unix, plan9 and
windows versions of environment discovery.
R=rsc, paulzhol
CC=golang-dev
https://golang.org/cl/3787046
Diffstat (limited to 'src/pkg/runtime/linux/thread.c')
| -rw-r--r-- | src/pkg/runtime/linux/thread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/runtime/linux/thread.c b/src/pkg/runtime/linux/thread.c index 9c9fc755b2..979260ba1d 100644 --- a/src/pkg/runtime/linux/thread.c +++ b/src/pkg/runtime/linux/thread.c @@ -263,6 +263,12 @@ runtime·osinit(void) { } +void +runtime·goenvs(void) +{ + runtime·goenvs_unix(); +} + // Called to initialize a new m (including the bootstrap m). void runtime·minit(void) |
