From 2441babc48ba943a058ead02b1de32960cc83d71 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Mon, 15 Dec 2014 18:00:57 +0300 Subject: [PATCH] linux_factory: add StartInitialization() After forking a new processes in a new container, we need to call exec() and tune namespaces. Signed-off-by: Andrew Vagin --- factory.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/factory.go b/factory.go index 389c138a..69014c14 100644 --- a/factory.go +++ b/factory.go @@ -27,4 +27,14 @@ type Factory interface { // Container is stopped // System error Load(id string) (Container, error) + + // StartInitialization is an internal API to libcontainer used during the rexec of the + // container. pipefd is the fd to the child end of the pipe used to syncronize the + // parent and child process providing state and configuration to the child process and + // returning any errors during the init of the container + // + // Errors: + // pipe connection error + // system error + StartInitialization(pipefd uintptr) error }