(w io.Writer, r io.ReadCloser)
| 24 | } |
| 25 | |
| 26 | func (t *tty) copyIO(w io.Writer, r io.ReadCloser) { |
| 27 | defer t.wg.Done() |
| 28 | _, _ = io.Copy(w, r) |
| 29 | _ = r.Close() |
| 30 | } |
| 31 | |
| 32 | // setup pipes for the process so that advanced features like c/r are able to easily checkpoint |
| 33 | // and restore the process's IO without depending on a host specific path or device |
no test coverage detected