For V1 I used the following trick to kill a child Linux process when its parent dies:
struct ExecHandler : bp::extend::handler
{
template<typename Executor>
void on_exec_setup (Executor &) const
{
(void)prctl(PR_SET_PDEATHSIG, SIGTERM);
}
};
...
bp::child p(
ExecHandler(),
...
);
Is there anything similar to bp::extend::handler in V2?
For V1 I used the following trick to kill a child Linux process when its parent dies:
Is there anything similar to
bp::extend::handlerin V2?