MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / newProcess

Function newProcess

common/sandbox/cmd/exec.go:28–32  ·  view source on GitHub ↗
(pid int, handle uintptr)

Source from the content-addressed store, hash-verified

26}
27
28func newProcess(pid int, handle uintptr) *Process {
29 p := &Process{Pid: pid, handle: handle}
30 runtime.SetFinalizer(p, (*Process).Release)
31 return p
32}
33
34func (p *Process) setDone() {
35 atomic.StoreUint32(&p.isdone, 1)

Callers 2

findProcessFunction · 0.85
startProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected