()
| 111 | } |
| 112 | |
| 113 | func (cw CmdWrap) Start() error { |
| 114 | defer func() { |
| 115 | for _, extraFile := range cw.Cmd.ExtraFiles { |
| 116 | if extraFile != nil { |
| 117 | extraFile.Close() |
| 118 | } |
| 119 | } |
| 120 | }() |
| 121 | return cw.Cmd.Start() |
| 122 | } |
| 123 | |
| 124 | func (cw CmdWrap) StdinPipe() (io.WriteCloser, error) { |
| 125 | return cw.Cmd.StdinPipe() |