MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / ExitSignal

Method ExitSignal

pkg/shellexec/conninterface.go:73–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func (cw CmdWrap) ExitSignal() string {
74 state := cw.Cmd.ProcessState
75 if state == nil {
76 return ""
77 }
78 if ws, ok := state.Sys().(syscall.WaitStatus); ok {
79 if ws.Signaled() {
80 return unixutil.GetSignalName(ws.Signal())
81 }
82 }
83 return ""
84}
85
86func (cw CmdWrap) KillGraceful(timeout time.Duration) {
87 if cw.Cmd.Process == nil {

Callers

nothing calls this directly

Calls 2

GetSignalNameFunction · 0.92
SysMethod · 0.80

Tested by

no test coverage detected