Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions varlink/socketactivation.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows

package varlink

Expand All @@ -7,7 +7,6 @@ import (
"os"
"strconv"
"strings"
"syscall"
)

func activationListener() net.Listener {
Expand Down Expand Up @@ -51,9 +50,9 @@ func activationListener() net.Listener {
fd = 3
}

syscall.CloseOnExec(fd)

file := os.NewFile(uintptr(fd), "varlink")
defer file.Close()

listener, err := net.FileListener(file)
if err != nil {
return nil
Expand Down
Loading