From: Aleksandr Mezin Date: Thu, 24 Mar 2016 11:55:03 +0000 (+0600) Subject: start: use LXC_SYNC_ERROR to report errors. X-Git-Tag: lxc-2.0.0.rc14~8^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1ccb562a9d71fe94c5b93706233d1a00280600e;p=thirdparty%2Flxc.git start: use LXC_SYNC_ERROR to report errors. This gives more meaningful error message than "invalid sequence". Signed-off-by: Aleksandr Mezin --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 3e51ad528..bb7009ba8 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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; }