Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
This module, except for useEnv, is copied from the build-env package.
Documentation
fchroot :: (MonadIO m, MonadMask m) => FilePath -> m a -> m a Source
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