Compare commits

..

2 Commits

Author SHA1 Message Date
d0d6f192ad
container: optionally isolate host abstract UNIX domain sockets via landlock
Some checks failed
Test / Hakurei (race detector) (push) Failing after 1m46s
Test / Sandbox (pull_request) Failing after 1m58s
Test / Hakurei (race detector) (pull_request) Failing after 4m51s
Test / Hpkg (pull_request) Failing after 2m18s
Test / Flake checks (pull_request) Has been skipped
Test / Sandbox (race detector) (push) Failing after 2m48s
Test / Hpkg (push) Failing after 2m49s
Test / Flake checks (push) Has been skipped
Test / Create distribution (push) Failing after 32s
Test / Create distribution (pull_request) Failing after 34s
Test / Hakurei (push) Failing after 1m4s
Test / Sandbox (race detector) (pull_request) Failing after 3m45s
Test / Sandbox (push) Failing after 1m22s
Test / Hakurei (pull_request) Failing after 1m38s
2025-08-17 17:34:12 +09:00
0ba993ec39
container: start from locked thread
Some checks failed
Test / Create distribution (push) Successful in 33s
Test / Hakurei (push) Failing after 1m1s
Test / Sandbox (race detector) (push) Failing after 1m41s
Test / Hakurei (race detector) (push) Failing after 2m42s
Test / Sandbox (push) Failing after 1m19s
Test / Hpkg (push) Failing after 1m39s
Test / Flake checks (push) Has been skipped
This allows setup that relies on per-thread state like securebits and landlock, from the parent side.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-08-17 17:26:20 +09:00

View File

@ -235,10 +235,6 @@ func (p *Container) Serve() error {
// Wait waits for the container init process to exit and releases any resources associated with the [Container].
func (p *Container) Wait() error {
if p.wait == nil {
if p.cmd != nil {
// pass through error from Cmd
return p.cmd.Wait()
}
return EINVAL
}
defer func() { close(p.wait); p.cancel(); p.wait = nil }()