/usr/include/boost/process
NameSizeModeActions
detail/-0755rm
args.hpp89680644editdlrm
async.hpp36830644editdlrm
async_pipe.hpp76940644editdlrm
async_system.hpp45350644editdlrm
child.hpp53090644editdlrm
cmd.hpp30720644editdlrm
env.hpp123010644editdlrm
environment.hpp247580644editdlrm
error.hpp66570644editdlrm
exception.hpp7100644editdlrm
exe.hpp25360644editdlrm
extend.hpp145850644editdlrm
group.hpp67600644editdlrm
handles.hpp30380644editdlrm
io.hpp199900644editdlrm
locale.hpp69680644editdlrm
pipe.hpp187630644editdlrm
posix.hpp28480644editdlrm
search_path.hpp17750644editdlrm
shell.hpp25890644editdlrm
spawn.hpp19290644editdlrm
start_dir.hpp34490644editdlrm
system.hpp40930644editdlrm
windows.hpp36750644editdlrm
Edit: /usr/include/boost/process/spawn.hpp (1929B)
// Copyright (c) 2006, 2007 Julio M. Merino Vidal // Copyright (c) 2008 Ilya Sokolov, Boris Schaeling // Copyright (c) 2009 Boris Schaeling // Copyright (c) 2010 Felipe Tanus, Boris Schaeling // Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling // Copyright (c) 2016 Klemens D. Morgenstern // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) /** * \file boost/process/spawn.hpp * * Defines the spawn function. */ #ifndef BOOST_PROCESS_SPAWN_HPP #define BOOST_PROCESS_SPAWN_HPP #include #include #include #include #if defined(BOOST_POSIX_API) #include #endif namespace boost { namespace process { namespace detail { } /** 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 This will set `SIGCHLD` to `SIGIGN` on posix. \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. */ template inline void spawn(Args && ...args) { typedef typename ::boost::process::detail::has_async_handler::type has_async; static_assert( !has_async::value, "Spawn cannot wait for exit, so async properties cannot be used"); auto c = ::boost::process::detail::execute_impl( #if defined(BOOST_POSIX_API) ::boost::process::posix::sig.ign(), #endif std::forward(args)...); c.detach(); } }} #endif