From e54d3fcd42f6e4e6d14b7491f1474dc4777ffe68 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 4 Mar 2013 10:11:34 +0100 Subject: [PATCH] attempt to return correct retcod to vsh --- lxcsu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lxcsu b/lxcsu index bf69e50..baf0e97 100644 --- a/lxcsu +++ b/lxcsu @@ -124,4 +124,7 @@ if (pid == 0): os.environ['SHELL'] = '/bin/sh' os.execv('/usr/sbin/capsh',exec_args) else: - os.waitpid(pid,0) + (r_pid,combined)=os.waitpid(pid,0) + retcod=combined/256 + sys.exit(retcod) + -- 2.43.0