MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / GetExitInfo

Method GetExitInfo

pkg/jobmanager/jobcmd.go:137–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135}
136
137func (jm *JobCmd) GetExitInfo() (bool, *wshrpc.CommandJobCmdExitedData) {
138 jm.lock.Lock()
139 defer jm.lock.Unlock()
140 if !jm.processExited {
141 return false, nil
142 }
143 exitData := &wshrpc.CommandJobCmdExitedData{
144 JobId: WshCmdJobManager.JobId,
145 ExitCode: jm.exitCode,
146 ExitSignal: jm.exitSignal,
147 ExitTs: jm.exitTs,
148 }
149 if jm.exitErr != nil {
150 exitData.ExitErr = jm.exitErr.Error()
151 }
152 return true, exitData
153}
154
155func (jm *JobCmd) setTermSize_withlock(termSize waveobj.TermSize) error {
156 if jm.cmdPty == nil {

Callers 2

sendJobExitedMethod · 0.80
PrepareConnectMethod · 0.80

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected