summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorNoah Fontes <noah.fontes@puppet.com>2021-06-22 14:20:21 -0700
committerNoah Fontes <noah.fontes@puppet.com>2021-06-23 10:54:47 -0700
commitb8430201f0046d78ee5ac6229718fa88c5246c96 (patch)
tree0a51dd4ada93e26e63419241e54bd661ae83c87e /pkg
parent99f9230e3fbd3b3ede5628eeeb8458175bc9c1a0 (diff)
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.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/shim/proc/exec_state.go4
1 files changed, 2 insertions, 2 deletions
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) {