From 3af026a42747b4ff0b56894eb9632c3b4402a04f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 2 Jul 2024 11:44:03 +0200 Subject: listenfd: fix in use error when multiple sockets passed --- listenfd/listenfd.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'listenfd') diff --git a/listenfd/listenfd.go b/listenfd/listenfd.go index cbf3163..5287898 100644 --- a/listenfd/listenfd.go +++ b/listenfd/listenfd.go @@ -49,10 +49,6 @@ func getFDSocket(i uint64) (net.Listener, error) { if !present { return nil, nil } - err := os.Unsetenv("LISTEN_FDS") - if err != nil { - return nil, errors.Wrap(err, "could not unset LISTEN_FDS") - } fds, err := strconv.ParseUint(lfds, 10, 32) if err != nil { -- cgit 1.4.1