git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c521344
)
Fix to let multiple instance of vsh log into the same xid context.
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 23 Aug 2005 02:24:43 +0000
(
02:24
+0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 23 Aug 2005 02:24:43 +0000
(
02:24
+0000)
src/vsh.c
patch
|
blob
|
history
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;
- if (
vc_ctx_create(xid) == VC_NOCTX
) {
+ if (
(vc_ctx_create(xid) == VC_NOCTX) && (errno != EEXIST)
) {
PERROR("vc_ctx_create(%d)", xid);
exit(1);
}