about summary refs log tree commit diff stats
path: root/listenfd
diff options
context:
space:
mode:
authorAlan Pearce2024-07-02 11:44:03 +0200
committerAlan Pearce2024-07-02 11:44:03 +0200
commit3af026a42747b4ff0b56894eb9632c3b4402a04f (patch)
tree9bb7499ba2212f94e19dfebb6f010353c20aed78 /listenfd
parentaf48d9a1bc24d14e113571a80c19dfaaf203c87c (diff)
downloadx-3af026a42747b4ff0b56894eb9632c3b4402a04f.tar.lz
x-3af026a42747b4ff0b56894eb9632c3b4402a04f.tar.zst
x-3af026a42747b4ff0b56894eb9632c3b4402a04f.zip
listenfd: fix in use error when multiple sockets passed
Diffstat (limited to 'listenfd')
-rw-r--r--listenfd/listenfd.go4
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 {