Skip to content

bp::extend::handler in V2? #454

@db4

Description

@db4

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions