| 47 | } |
| 48 | |
| 49 | type ShellProc struct { |
| 50 | ConnName string |
| 51 | Cmd ConnInterface |
| 52 | CloseOnce *sync.Once |
| 53 | DoneCh chan any // closed after proc.Wait() returns |
| 54 | WaitErr error // WaitErr is synchronized by DoneCh (written before DoneCh is closed) and CloseOnce |
| 55 | } |
| 56 | |
| 57 | func (sp *ShellProc) Close() { |
| 58 | sp.Cmd.KillGraceful(DefaultGracefulKillWait) |
nothing calls this directly
no outgoing calls
no test coverage detected