]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start: use LXC_SYNC_ERROR to report errors.
authorAleksandr Mezin <mezin.alexander@gmail.com>
Thu, 24 Mar 2016 11:55:03 +0000 (17:55 +0600)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:00:11 +0000 (18:00 -0500)
This gives more meaningful error message than "invalid sequence".

Signed-off-by: Aleksandr Mezin <mezin.alexander@gmail.com>
src/lxc/start.c

index 1c620490ad486a1356909b7cb2afb6214341b11c..7f40df85214e653feea5bb61f607b226f4ca20fd 100644 (file)
@@ -772,9 +772,9 @@ static int do_start(void *data)
        handler->ops->start(handler, handler->data);
 
 out_warn_father:
-       /* we want the parent to know something went wrong, so any
-        * value other than what it expects is ok. */
-       lxc_sync_wake_parent(handler, LXC_SYNC_POST_CONFIGURE);
+       /* we want the parent to know something went wrong, so we return a special
+        * error code. */
+       lxc_sync_wake_parent(handler, LXC_SYNC_ERROR);
        return -1;
 }