X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lxcsu;h=baf0e97810722ff27136a36d4c53192b02de7e20;hb=e54d3fcd42f6e4e6d14b7491f1474dc4777ffe68;hp=bf69e50af434ed5144a989163d436106b846fc7c;hpb=fd83f1036cdf5f54df55fdebcf6d59f5ceef5a54;p=lxc-userspace.git 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) +