aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/params.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-07 15:50:59 +0900
committerOphestra <cat@gensokyo.uk>2026-04-07 16:05:33 +0900
commit062edb3487c1cc116cae78bf77420b65c43517d1 (patch)
treeac91267721d7a288ea301b060b0110aa5d3b9b9a /container/params.go
parente4355279a1624833e36455a1a85788dbe091464e (diff)
container: remove setup pipe helper
The API forces use of finalizer to close the read end of the setup pipe, which is no longer considered acceptable. Exporting this as part of package container also imposes unnecessary maintenance burden. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/params.go')
-rw-r--r--container/params.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/container/params.go b/container/params.go
index 46c3b9b2..e6cd26f8 100644
--- a/container/params.go
+++ b/container/params.go
@@ -8,17 +8,6 @@ import (
"syscall"
)
-// Setup appends the read end of a pipe for setup params transmission and returns its fd.
-func Setup(extraFiles *[]*os.File) (int, *os.File, error) {
- if r, w, err := os.Pipe(); err != nil {
- return -1, nil, err
- } else {
- fd := 3 + len(*extraFiles)
- *extraFiles = append(*extraFiles, r)
- return fd, w, nil
- }
-}
-
var (
ErrReceiveEnv = errors.New("environment variable not set")
)