[lxc-devel] [lxc/master] fix the wrong exit status

0x0916 on Github lxc-bot at linuxcontainers.org
Mon May 8 14:18:30 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 340 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170508/68c83426/attachment.bin>
-------------- next part --------------
From 13110a68eaa22f40cd17955bff713acab95cc119 Mon Sep 17 00:00:00 2001
From: 0x0916 <w at laoqinren.net>
Date: Mon, 8 May 2017 21:06:21 +0800
Subject: [PATCH] fix the wrong exit status

Signed-off-by: 0x0916 <w at laoqinren.net>
---
 src/lxc/tools/lxc_top.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/tools/lxc_top.c b/src/lxc/tools/lxc_top.c
index 593f9f1..7f3ae4f 100644
--- a/src/lxc/tools/lxc_top.c
+++ b/src/lxc/tools/lxc_top.c
@@ -555,5 +555,5 @@ int main(int argc, char *argv[])
 err1:
 	lxc_mainloop_close(&descr);
 out:
-	exit(EXIT_FAILURE);
+	exit(ret);
 }


More information about the lxc-devel mailing list