From b72c975c6322ad0f14c06e54ffac7637abc3be0e Mon Sep 17 00:00:00 2001 From: wangyue Date: Wed, 12 Dec 2018 11:25:31 +0800 Subject: [PATCH] =?UTF-8?q?#44=20unset=20LISTEN=5FFDS=20since=20it=20isn?= =?UTF-8?q?=E2=80=99t=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gracenet/net.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gracenet/net.go b/gracenet/net.go index a980954..7f01f7f 100644 --- a/gracenet/net.go +++ b/gracenet/net.go @@ -49,6 +49,9 @@ func (n *Net) inherit() error { if countStr == "" { return } + defer func() { + os.Unsetenv(envCountKey) + }() count, err := strconv.Atoi(countStr) if err != nil { retErr = fmt.Errorf("found invalid count value: %s=%s", envCountKey, countStr)