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

@@ -2,7 +2,7 @@ package stub_test
import (
"testing"
_ "unsafe"
_ "unsafe" // for go:linkname
"hakurei.app/container/stub"
)