ClosePostStart closes any fds that are provided to the container and dup2'd so that we no longer have copy in our process.
()
| 160 | // ClosePostStart closes any fds that are provided to the container and dup2'd |
| 161 | // so that we no longer have copy in our process. |
| 162 | func (t *tty) ClosePostStart() { |
| 163 | for _, c := range t.postStart { |
| 164 | _ = c.Close() |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | // Close closes all open fds for the tty and/or restores the original |
| 169 | // stdin state to what it was prior to the container execution |