initutils: use vfork() in lxc_container_init()

We can let the child finish calling exec before continuing in the parent. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 96294efb
......@@ -510,7 +510,7 @@ __noreturn int lxc_container_init(int argc, char *const *argv, bool quiet)
remove_self();
pid = fork();
pid = vfork();
if (pid < 0)
exit(EXIT_FAILURE);
......
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