We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5a19de + d3fafea commit 53e8175Copy full SHA for 53e8175
activation/files.go
@@ -28,10 +28,8 @@ const (
28
29
func Files(unsetEnv bool) []*os.File {
30
if unsetEnv {
31
- // there is no way to unset env in golang os package for now
32
- // https://code.google.com/p/go/issues/detail?id=6423
33
- defer os.Setenv("LISTEN_PID", "")
34
- defer os.Setenv("LISTEN_FDS", "")
+ defer os.Unsetenv("LISTEN_PID")
+ defer os.Unsetenv("LISTEN_FDS")
35
}
36
37
pid, err := strconv.Atoi(os.Getenv("LISTEN_PID"))
0 commit comments