MCPcopy
hub / github.com/wavetermdev/waveterm / ExitCode

Method ExitCode

pkg/shellexec/conninterface.go:65–71  ·  view source on GitHub ↗

only valid once Wait() has returned (or you know Cmd is done)

()

Source from the content-addressed store, hash-verified

63
64// only valid once Wait() has returned (or you know Cmd is done)
65func (cw CmdWrap) ExitCode() int {
66 state := cw.Cmd.ProcessState
67 if state == nil {
68 return -1
69 }
70 return state.ExitCode()
71}
72
73func (cw CmdWrap) ExitSignal() string {
74 state := cw.Cmd.ProcessState

Callers

nothing calls this directly

Calls 1

ExitCodeMethod · 0.65

Tested by

no test coverage detected