From 2f237b2fde3855e5333e9aa52b6eb1d5d9583e72 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Mon, 28 Aug 2017 18:38:47 +0000 Subject: [PATCH] WithProcessKill should kill all processes. Signed-off-by: Lantao Liu --- task_opts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task_opts.go b/task_opts.go index 77f67458e..36bbfab94 100644 --- a/task_opts.go +++ b/task_opts.go @@ -41,7 +41,7 @@ func WithProcessKill(ctx context.Context, p Process) error { if err != nil { return err } - if err := p.Kill(ctx, syscall.SIGKILL); err != nil { + if err := p.Kill(ctx, syscall.SIGKILL, WithKillAll); err != nil { if errdefs.IsFailedPrecondition(err) || errdefs.IsNotFound(err) { return nil }