MCPcopy Index your code
hub / github.com/subtrace/subtrace / getDeleteSocket

Method getDeleteSocket

cmd/run/engine/process/process.go:173–182  ·  view source on GitHub ↗
(fd int)

Source from the content-addressed store, hash-verified

171}
172
173func (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
184func (p *Process) getFD(targetFD int) (*fd.FD, syscall.Errno) {
185 if !p.pidfd.IncRef() {

Callers 1

handleCloseMethod · 0.95

Calls 1

LockMethod · 0.80

Tested by

no test coverage detected