boost::process::detail::posix_setup Struct Reference

#include <posix_ops.hpp>

List of all members.

Public Member Functions

 posix_setup ()
void operator() () const

Public Attributes

std::string work_directory
std::string chroot
uid_t uid
uid_t euid
gid_t gid
gid_t egid


Detailed Description

Helper class to configure a POSIX child.

This helper class is used to hold all the attributes that configure a new POSIX child process and to centralize all the actions needed to make them effective.

All its fields are public for simplicity. It is only intended for internal use and it is heavily coupled with the Context implementations.


Constructor & Destructor Documentation

boost::process::detail::posix_setup::posix_setup (  )  [inline]

Creates a new properties set.

Creates a new object that has sensible default values for all the properties.


Member Function Documentation

void boost::process::detail::posix_setup::operator() (  )  const [inline]

Sets up the execution environment.

Modifies the current execution environment (that of the child) so that the properties become effective.

Exceptions:
boost::system::system_error If any error ocurred during environment configuration. The child process should abort execution if this happens because its start conditions cannot be met.


Member Data Documentation

The work directory.

This string specifies the directory in which the child process starts execution. It cannot be empty.

The chroot directory, if any.

Specifies the directory in which the child process is chrooted before execution. Empty if this feature is not desired.

The user credentials.

UID that specifies the user credentials to use to run the child process. Defaults to the current UID.

The effective user credentials.

EUID that specifies the effective user credentials to use to run the child process. Defaults to the current EUID.

The group credentials.

GID that specifies the group credentials to use to run the child process. Defaults to the current GID.

The effective group credentials.

EGID that specifies the effective group credentials to use to run the child process. Defaults to the current EGID.


The documentation for this struct was generated from the following file:

Generated on Mon Sep 22 01:00:43 2008 by  doxygen 1.5.5