- allowing vc_ctx_create() to return -EEXIST is not the right thing to
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 31 Aug 2005 15:23:10 +0000 (15:23 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 31 Aug 2005 15:23:10 +0000 (15:23 +0000)
commit1ee051deee76b5f84ea74a389ba5e1cc78adc122
treee51cc36fb42c4cd1a90f24bd51fcc7d6e453d606
parent272cd65d97715143f588744100419e827bbe494a
- allowing vc_ctx_create() to return -EEXIST is not the right thing to
  do (leaves all future vsh sessions in root context!). Call
  vc_ctx_migrate() to migrate the current process tree to the specified
  context, if vc_ctx_create() fails and returns -EEXIST. Also, for
  safety, (re)set the various resource limits (including capabilities)
  for the context every time.
src/vsh.c