git://git.onelab.eu
/
lxc-userspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fd83f10
)
attempt to return correct retcod to vsh
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Mon, 4 Mar 2013 09:11:34 +0000
(10:11 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Mon, 4 Mar 2013 09:11:34 +0000
(10:11 +0100)
lxcsu
patch
|
blob
|
history
diff --git
a/lxcsu
b/lxcsu
index
bf69e50
..
baf0e97
100644
(file)
--- 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)
+