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

Method Kill

pkg/genconn/wsl-impl.go:85–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func (w *WSLProcessController) Kill() {
86 w.lock.Lock()
87 defer w.lock.Unlock()
88
89 if w.cmd == nil {
90 return
91 }
92 process := w.cmd.GetProcess()
93 if process == nil {
94 return
95 }
96 process.Kill()
97}
98
99func (w *WSLProcessController) StdinPipe() (io.WriteCloser, error) {
100 w.lock.Lock()

Callers

nothing calls this directly

Calls 2

KillMethod · 0.65
GetProcessMethod · 0.45

Tested by

no test coverage detected