git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix to let multiple instance of vsh log into the same xid context.
[util-vserver.git]
/
src
/
vsh.c
diff --git
a/src/vsh.c
b/src/vsh.c
index
ffdf110
..
5f1f9a3
100644
(file)
--- a/
src/vsh.c
+++ b/
src/vsh.c
@@
-227,7
+227,7
@@
static int sandbox_processes(xid_t xid)
flags.flagword = VC_VXF_INFO_LOCK;
flags.mask = VC_VXF_STATE_SETUP | VC_VXF_INFO_LOCK;
flags.flagword = VC_VXF_INFO_LOCK;
flags.mask = VC_VXF_STATE_SETUP | VC_VXF_INFO_LOCK;
- if (
vc_ctx_create(xid) == VC_NOCTX
) {
+ if (
(vc_ctx_create(xid) == VC_NOCTX) && (errno != EEXIST)
) {
PERROR("vc_ctx_create(%d)", xid);
exit(1);
}
PERROR("vc_ctx_create(%d)", xid);
exit(1);
}