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

Method ExitCode

common/sandbox/cmd/exec_posix.go:134–140  ·  view source on GitHub ↗

ExitCode returns the exit code of the exited process, or -1 if the process hasn't exited or was terminated by a signal.

()

Source from the content-addressed store, hash-verified

132// ExitCode returns the exit code of the exited process, or -1
133// if the process hasn't exited or was terminated by a signal.
134func (p *ProcessState) ExitCode() int {
135 // return -1 if the process hasn't started.
136 if p == nil {
137 return -1
138 }
139 return p.status.ExitStatus()
140}

Callers 1

RunUnixShellFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected