start: use barrier instead of wake/wait pair

parent 2df612d4
...@@ -1751,10 +1751,7 @@ static int lxc_spawn(struct lxc_handler *handler) ...@@ -1751,10 +1751,7 @@ static int lxc_spawn(struct lxc_handler *handler)
} }
} }
if (!lxc_sync_wake_child(handler, START_SYNC_STARTUP)) if (!lxc_sync_barrier_child(handler, START_SYNC_STARTUP))
goto out_delete_net;
if (!lxc_sync_wait_child(handler, START_SYNC_CONFIGURE))
goto out_delete_net; goto out_delete_net;
if (!cgroup_ops->setup_limits_legacy(cgroup_ops, handler->conf, false)) { if (!cgroup_ops->setup_limits_legacy(cgroup_ops, handler->conf, false)) {
......
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