[lxc-devel] [lxc/master] tools: exit with return code of lxc_execute()
brauner on Github
lxc-bot at linuxcontainers.org
Wed Feb 15 12:35:37 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 381 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170215/11e1a90d/attachment.bin>
-------------- next part --------------
From 509c7f8dcbbfbb9e5b5b67bb1ee069f38a3ddd7d Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 15 Feb 2017 13:34:43 +0100
Subject: [PATCH] tools: exit with return code of lxc_execute()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
src/lxc/tools/lxc_execute.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/lxc/tools/lxc_execute.c b/src/lxc/tools/lxc_execute.c
index fae2dca..42186a7 100644
--- a/src/lxc/tools/lxc_execute.c
+++ b/src/lxc/tools/lxc_execute.c
@@ -164,7 +164,5 @@ int main(int argc, char *argv[])
lxc_conf_free(conf);
- if (ret < 0)
- exit(EXIT_FAILURE);
- exit(EXIT_SUCCESS);
+ exit(ret);
}
More information about the lxc-devel
mailing list