From b8430201f0046d78ee5ac6229718fa88c5246c96 Mon Sep 17 00:00:00 2001 From: Noah Fontes Date: Tue, 22 Jun 2021 14:20:21 -0700 Subject: Do not attempt to kill stopped exec processes While #6204 addressed the stopped state for handling signals in the main process, it did not update exec processes in the same way. This change mirrors that adjustment for exec processes. --- pkg/shim/proc/exec_state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/shim/proc/exec_state.go') diff --git a/pkg/shim/proc/exec_state.go b/pkg/shim/proc/exec_state.go index 04a5d19b4..9c6edd3f5 100644 --- a/pkg/shim/proc/exec_state.go +++ b/pkg/shim/proc/exec_state.go @@ -151,8 +151,8 @@ func (s *execStoppedState) Delete(ctx context.Context) error { return nil } -func (s *execStoppedState) Kill(ctx context.Context, sig uint32, all bool) error { - return s.p.kill(ctx, sig, all) +func (s *execStoppedState) Kill(_ context.Context, sig uint32, _ bool) error { + return handleStoppedKill(sig) } func (s *execStoppedState) SetExited(int) { -- cgit v1.2.3