title: Node.js and chrooting the current process
body: <p>I have a need to only run a certain portion of code from a node.js script under a chroot. I've setup the the chroot and am using the daemon.chroot. The chrooting works great, but I need to be able to unchroot the process and re-chroot it elsewhere. I understand now (in previous languages I would fork the process, and have the the child run in the chroot) that Node.js chroots the entire running process, so subsequent attempts to chroot different environments leaves Node complaining that the chroot doesn't exist, and it doesn't exist inside of the previous chroot.</p>
  
  <p>What's the best way to accomplish this ability to chroot then "unchroot" a portion of code or a process in with Node?</p>