2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 15:47:54 +00:00

start: use barrier instead of wake/wait pair

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2021-05-21 11:07:33 +02:00
parent 2df612d422
commit 46a3bf0778

View File

@@ -1751,10 +1751,7 @@ static int lxc_spawn(struct lxc_handler *handler)
}
}
if (!lxc_sync_wake_child(handler, START_SYNC_STARTUP))
goto out_delete_net;
if (!lxc_sync_wait_child(handler, START_SYNC_CONFIGURE))
if (!lxc_sync_barrier_child(handler, START_SYNC_STARTUP))
goto out_delete_net;
if (!cgroup_ops->setup_limits_legacy(cgroup_ops, handler->conf, false)) {