()
| 83 | } |
| 84 | |
| 85 | func (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 | |
| 99 | func (w *WSLProcessController) StdinPipe() (io.WriteCloser, error) { |
| 100 | w.lock.Lock() |
nothing calls this directly
no test coverage detected