Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit e282cf22ca.
PrevUpHomeNext

Function template spawn

boost::process::v1::spawn

Synopsis

// In header: <boost/process/v1/spawn.hpp>


template<typename ... Args> void spawn(Args &&... args);

Description

Launch a process and detach it. Returns no handle.

This function starts a process and immediately detaches it. It thereby prevents the system from creating a zombie process, but will also cause the system to be unable to wait for the child to exit.

[Note] Note

This will set SIGCHLD to SIGIGN on posix.

[Warning] Warning

This function does not allow asynchronous operations, since it cannot wait for the end of the process. It will fail to compile if a reference to boost::asio::io_context is passed.


PrevUpHomeNext