| ... | ... |
@@ -167,6 +167,7 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba |
| 167 | 167 |
waitErr error |
| 168 | 168 |
waitLock = make(chan struct{})
|
| 169 | 169 |
) |
| 170 |
+ |
|
| 170 | 171 |
go func() {
|
| 171 | 172 |
if err := c.Wait(); err != nil {
|
| 172 | 173 |
if _, ok := err.(*exec.ExitError); !ok { // Do not propagate the error if it's simply a status code != 0
|
| ... | ... |
@@ -181,10 +182,11 @@ func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba |
| 181 | 181 |
if err != nil {
|
| 182 | 182 |
if c.Process != nil {
|
| 183 | 183 |
c.Process.Kill() |
| 184 |
- c.Process.Wait() |
|
| 184 |
+ c.Wait() |
|
| 185 | 185 |
} |
| 186 | 186 |
return -1, err |
| 187 | 187 |
} |
| 188 |
+ |
|
| 188 | 189 |
c.ContainerPid = pid |
| 189 | 190 |
|
| 190 | 191 |
if startCallback != nil {
|