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.
This commit is contained in:
Noah Fontes
2021-06-23 10:54:47 -07:00
parent 99f9230e3f
commit b8430201f0
+2 -2
View File
@@ -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) {