]> 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)
committerAleksandr Mezin <mezin.alexander@gmail.com>
Thu, 24 Mar 2016 11:55:03 +0000 (17:55 +0600)
This gives more meaningful error message than "invalid sequence".

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

index 3e51ad528f8b5e63b9fcdb932a7edd915f37fe38..bb7009ba87170d723e6c318bf6cf601bfc9d4308 100644 (file)
@@ -868,9 +868,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;
 }