From 3ae1a347083da89e166fe74d1e620c72534c1c0e Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Thu, 24 Mar 2016 17:55:03 +0600 Subject: [PATCH] start: use LXC_SYNC_ERROR to report errors. This gives more meaningful error message than "invalid sequence". Signed-off-by: Aleksandr Mezin --- src/lxc/start.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 1c620490a..7f40df852 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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; } -- 2.47.2