Fix stress test tool exec kill

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-11-29 17:28:08 -05:00
parent 59bd196711
commit 4363994d87

View File

@ -239,9 +239,9 @@ func (w *worker) runContainer(ctx context.Context, id string) error {
logrus.WithError(err).Error("exec failure")
}
}
}
if err := task.Kill(ctx, syscall.SIGKILL); err != nil {
return err
if err := task.Kill(ctx, syscall.SIGKILL); err != nil {
return err
}
}
status := <-statusC
_, _, err = status.Result()