From 4363994d8747ac9dea7ce307fb4bb7ece0c3ea53 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 29 Nov 2017 17:28:08 -0500 Subject: [PATCH] Fix stress test tool exec kill Signed-off-by: Michael Crosby --- cmd/containerd-stress/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/containerd-stress/main.go b/cmd/containerd-stress/main.go index 522fc7400..4d236dcaf 100644 --- a/cmd/containerd-stress/main.go +++ b/cmd/containerd-stress/main.go @@ -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()