30 static_cast<unsigned int> (lhs) | static_cast<unsigned int>(rhs));
38 static_cast<unsigned int> (lhs) & static_cast<unsigned int>(rhs));
52 switch (client_result.status)
66 switch (service_result.status)
ForkAndRunResult
The ForkAndRunResult enum models the different failure modes of fork_and_run.
Status
The Status enum wrap's the posix exit status.
The process exited normally.
CORE_POSIX_DLL_PUBLIC ForkAndRunResult fork_and_run(const std::function< core::posix::exit::Status()> &service, const std::function< core::posix::exit::Status()> &client)
Forks two processes for both the service and the client.
CORE_POSIX_DLL_PUBLIC ChildProcess fork(const std::function< posix::exit::Status()> &main, const StandardStream &flags)
fork forks a new process and executes the provided main function in the newly forked process...
Special value indicating no bit being set.
CORE_POSIX_DLL_PUBLIC ForkAndRunResult operator&(ForkAndRunResult lhs, ForkAndRunResult rhs)
CORE_POSIX_DLL_PUBLIC ForkAndRunResult operator|(ForkAndRunResult lhs, ForkAndRunResult rhs)
Also wait for state changes in untraced children.