diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-06 23:15:01 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-06 23:15:01 +0300 |
| commit | d8dc052fbfae7f831f8e665c64bb63969ec70db8 (patch) | |
| tree | 74b7539f92a5f1bb9e3e25489be8a185d2146163 /internal/file/file.go | |
| parent | 138c0f9b6255ed61eee8390674c026daa23eddc5 (diff) | |
better
Diffstat (limited to 'internal/file/file.go')
| -rw-r--r-- | internal/file/file.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/file/file.go b/internal/file/file.go index 11d992d..6c29961 100644 --- a/internal/file/file.go +++ b/internal/file/file.go @@ -55,13 +55,6 @@ func (f FdFile) Dup(fd int32) FdFile { return dupFd } -func (f FdFile) DupAddFlags(fd, flags int32) FdFile { - dupFd := f - dupFd.fd = fd - dupFd.flags = Flags(int32(dupFd.flags) | flags) - return dupFd -} - func readFlagsFromFdInfo(fd int32, pid uint32) (Flags, error) { data, err := os.ReadFile(fmt.Sprintf("/proc/%d/fdinfo/%d", pid, fd)) if err != nil { |
