Remove clone_vfork

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-02-20 14:40:36 -08:00
parent fce169539d
commit 17a3359c16
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ func deletePidFile() error {
func createCommand(container *libcontainer.Container, console string, args []string) *exec.Cmd { func createCommand(container *libcontainer.Container, console string, args []string) *exec.Cmd {
command := exec.Command("nsinit", append([]string{"init", console}, args...)...) command := exec.Command("nsinit", append([]string{"init", console}, args...)...)
command.SysProcAttr = &syscall.SysProcAttr{ command.SysProcAttr = &syscall.SysProcAttr{
Cloneflags: uintptr(getNamespaceFlags(container.Namespaces) | syscall.CLONE_VFORK), // we need CLONE_VFORK so we can wait on the child Cloneflags: uintptr(getNamespaceFlags(container.Namespaces)),
} }
return command return command
} }