(fd int)
| 171 | } |
| 172 | |
| 173 | func (p *Process) getDeleteSocket(fd int) (*socket.Socket, bool) { |
| 174 | p.mu.Lock() |
| 175 | defer p.mu.Unlock() |
| 176 | |
| 177 | s, ok := p.sockets[fd] |
| 178 | if ok { |
| 179 | delete(p.sockets, fd) |
| 180 | } |
| 181 | return s, ok |
| 182 | } |
| 183 | |
| 184 | func (p *Process) getFD(targetFD int) (*fd.FD, syscall.Errno) { |
| 185 | if !p.pidfd.IncRef() { |