MCPcopy Create free account
hub / github.com/pydio/cells / GetPID

Method GetPID

common/utils/fork/process.go:102–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102func (p *Process) GetPID() (string, bool) {
103 if p.cmd == nil || p.cmd.Process == nil {
104 return "", false
105 }
106 return fmt.Sprintf("%d", p.cmd.Process.Pid), true
107}
108
109func (p *Process) Err() error {
110 return p.lastErr

Callers 1

RawServeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected