From 9641805ec2025e8434e1120257f51d19b877c8e4 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 5 Apr 2026 00:38:33 +0900 Subject: [PATCH] container/init: ignore finished process This is not considered an error, if the process finishes while the signal is being delivered. Signed-off-by: Ophestra --- container/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/init.go b/container/init.go index e8e95a7a..4d5bb8a9 100644 --- a/container/init.go +++ b/container/init.go @@ -495,7 +495,7 @@ func initEntrypoint(k syscallDispatcher, msg message.Msg) { case s := <-sig: if s == CancelSignal && params.ForwardCancel && cmd.Process != nil { msg.Verbose("forwarding context cancellation") - if err := k.signal(cmd, os.Interrupt); err != nil { + if err := k.signal(cmd, os.Interrupt); err != nil && !errors.Is(err, os.ErrProcessDone) { k.printf(msg, "cannot forward cancellation: %v", err) } continue