Safe Haskell | Safe-Infered |
---|
This module, except for useEnv, is copied from the build-env package.
Documentation
fchroot :: FilePath -> IO a -> IO aSource
fchroot runs an IO action inside a chroot fchroot performs a chroot, runs the action, and then restores the original root and working directory. This probably affects the chroot and working directory of all the threads in the process, so... NOTE: will throw IOError if internal chroot fails