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 848fd7638b
commit b90aaf6828

View file

@ -165,7 +165,7 @@ func deletePidFile() error {
func createCommand(container *libcontainer.Container, console string, args []string) *exec.Cmd {
command := exec.Command("nsinit", append([]string{"init", console}, args...)...)
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
}