container/init: close initial process files on termination

This closes them during the adopt wait delay. This also keeps them alive.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-11-10 20:35:59 +09:00
parent d7e0104ae4
commit 2f74adc8bd
6 changed files with 27 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ import (
"strings"
"syscall"
"testing"
_ "unsafe"
_ "unsafe" // for go:linkname
. "hakurei.app/container/check"
)