start: use lxc_raw_clone_cb() where possible

This way we can rely on the kernel's copy-on-write support similar to fork(). Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 14c678f1
......@@ -1380,7 +1380,7 @@ static int lxc_spawn(struct lxc_handler *handler)
flags &= ~CLONE_NEWNET;
}
handler->pid = lxc_clone(do_start, handler, flags);
handler->pid = lxc_raw_clone_cb(do_start, handler, flags);
if (handler->pid < 0) {
SYSERROR("Failed to clone a new set of namespaces.");
goto out_delete_net;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment