]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start: use barrier instead of wake/wait pair
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 21 May 2021 09:07:33 +0000 (11:07 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 21 May 2021 15:27:58 +0000 (17:27 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index cefcc099e4799276115f4c95ca7f25d8690c3cee..f732eb52f1759f0fa589f7895391a847a9dc7f23 100644 (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)) {