app: integrate interrupt forwarding
Some checks failed
Test / Create distribution (push) Successful in 33s
Test / Hakurei (push) Failing after 56s
Test / Hakurei (race detector) (push) Failing after 1m2s
Test / Planterette (push) Failing after 1m3s
Test / Sandbox (race detector) (push) Failing after 1m19s
Test / Sandbox (push) Failing after 1m25s
Test / Flake checks (push) Has been skipped

This significantly increases usability of command line tools running through hakurei.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-07-29 02:21:12 +09:00
parent ddf48a6c22
commit e72f96ad0a
11 changed files with 70 additions and 18 deletions

View File

@@ -32,6 +32,10 @@ func newContainer(s *hst.ContainerConfig, os sys.State, uid, gid *int) (*contain
SeccompPresets: s.SeccompPresets,
RetainSession: s.Tty,
HostNet: s.Net,
// the container is canceled when shim is requested to exit or receives an interrupt or termination signal;
// this behaviour is implemented in the shim
ForwardCancel: !s.ImmediateTermination,
}
{