(fd int)
| 160 | } |
| 161 | |
| 162 | func (p *Process) getSocket(fd int) (*socket.Socket, bool) { |
| 163 | p.mu.RLock() |
| 164 | defer p.mu.RUnlock() |
| 165 | |
| 166 | s, ok := p.sockets[fd] |
| 167 | if !ok { |
| 168 | return nil, false |
| 169 | } |
| 170 | return s, ok |
| 171 | } |
| 172 | |
| 173 | func (p *Process) getDeleteSocket(fd int) (*socket.Socket, bool) { |
| 174 | p.mu.Lock() |
no outgoing calls
no test coverage detected