From 8ccb799bda96e6654434d15d9b1136876463b05e Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Tue, 23 Aug 2005 02:24:43 +0000 Subject: [PATCH] Fix to let multiple instance of vsh log into the same xid context. --- src/vsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.0