From: Marc Fiuczynski Date: Tue, 23 Aug 2005 02:24:43 +0000 (+0000) Subject: Fix to let multiple instance of vsh log into the same xid context. X-Git-Tag: after-util-vserver-0_30_208-revert~130 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8ccb799bda96e6654434d15d9b1136876463b05e;p=util-vserver.git Fix to let multiple instance of vsh log into the same xid context. --- diff --git a/src/vsh.c b/src/vsh.c index ffdf110..5f1f9a3 100644 --- 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); }