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 }