diff options
author | Alan Pearce | 2024-07-02 11:44:03 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-02 11:44:03 +0200 |
commit | 3af026a42747b4ff0b56894eb9632c3b4402a04f (patch) | |
tree | 9bb7499ba2212f94e19dfebb6f010353c20aed78 | |
parent | af48d9a1bc24d14e113571a80c19dfaaf203c87c (diff) | |
download | x-3af026a42747b4ff0b56894eb9632c3b4402a04f.tar.lz x-3af026a42747b4ff0b56894eb9632c3b4402a04f.tar.zst x-3af026a42747b4ff0b56894eb9632c3b4402a04f.zip |
listenfd: fix in use error when multiple sockets passed
-rw-r--r-- | listenfd/listenfd.go | 4 |
1 files changed, 0 insertions, 4 deletions
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 { |