all repos — x @ 3af026a42747b4ff0b56894eb9632c3b4402a04f

Experiments and stuff

listenfd: fix in use error when multiple sockets passed

Alan Pearce
commit

3af026a42747b4ff0b56894eb9632c3b4402a04f

parent

af48d9a1bc24d14e113571a80c19dfaaf203c87c

1 file changed, 0 insertions(+), 4 deletions(-)

jump to
M listenfd/listenfd.golistenfd/listenfd.go
@@ -49,10 +49,6 @@ lfds, present := os.LookupEnv("LISTEN_FDS")
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 {