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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function template spawn

boost::process::spawn

Synopsis

// In header: <boost/process/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