mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
fmt
This commit is contained in:
@@ -334,12 +334,12 @@ func Init(options ...Option) error {
|
||||
}
|
||||
|
||||
// load the os environment once
|
||||
// prevents potential segfaults if it's is accessed from anywhere else
|
||||
cachedEnv = make(map[string]string, len(os.Environ()))
|
||||
for _, envVar := range os.Environ() {
|
||||
key, val, _ := strings.Cut(envVar, "=")
|
||||
cachedEnv[key] = val
|
||||
}
|
||||
// prevents potential segfaults if it's is accessed from anywhere else
|
||||
cachedEnv = make(map[string]string, len(os.Environ()))
|
||||
for _, envVar := range os.Environ() {
|
||||
key, val, _ := strings.Cut(envVar, "=")
|
||||
cachedEnv[key] = val
|
||||
}
|
||||
|
||||
shutdownWG.Add(1)
|
||||
done = make(chan struct{})
|
||||
|
||||
Reference in New Issue
Block a user