Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function create_child

boost::process::create_child

Synopsis

// In header: <boost/process/operations.hpp>


template<typename Arguments, typename Context> 
  child create_child(const std::string & executable, Arguments args, 
                     Context ctx);
child create_child(const std::string & executable);
template<typename Arguments> 
  child create_child(const std::string & executable, Arguments args);

Description

Starts a new child process.

Launches a new process based on the binary image specified by the executable, the set of arguments passed to it and the execution context.

Blocking remarks: This function may block if the device holding the executable blocks when loading the image. This might happen if, e.g., the binary is being loaded from a network share.

Returns:

A handle to the new child process.


PrevUpHomeNext