Fix to let multiple instance of vsh log into the same xid context.
authorMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 23 Aug 2005 02:24:43 +0000 (02:24 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 23 Aug 2005 02:24:43 +0000 (02:24 +0000)
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);
        }