summaryrefslogtreecommitdiff
path: root/internal/file/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/file/file.go')
-rw-r--r--internal/file/file.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/file/file.go b/internal/file/file.go
index 9edd27b..330ba21 100644
--- a/internal/file/file.go
+++ b/internal/file/file.go
@@ -38,6 +38,7 @@ func NewFd(fd int32, name []byte, flags int32) FdFile {
func NewFdWithPid(fd int32, pid uint32) (f FdFile) {
var err error
+ f.fd = fd
procPath := fmt.Sprintf("/proc/%d/fd/%d", pid, fd)
f.name, err = os.Readlink(procPath)
if err != nil {