Apache Mesos
Public Member Functions | Public Attributes | Friends | List of all members
process::Subprocess::ParentHook Struct Reference

A hook can be passed to a subprocess call. More...

#include <subprocess.hpp>

Public Member Functions

 ParentHook (const lambda::function< Try< Nothing >(pid_t)> &_parent_setup)
 

Public Attributes

const lambda::function< Try< Nothing >pid_t)> parent_setup
 The callback that must be specified for execution after the child has been cloned, but before it starts executing the new process. More...
 

Friends

class Subprocess
 

Detailed Description

A hook can be passed to a subprocess call.

It provides a way to inject dynamic implementation behavior between the clone and exec calls in the parent process.

Constructor & Destructor Documentation

process::Subprocess::ParentHook::ParentHook ( const lambda::function< Try< Nothing >(pid_t)> &  _parent_setup)

Friends And Related Function Documentation

friend class Subprocess
friend

Member Data Documentation

const lambda::function<Try<Nothing>pid_t)> process::Subprocess::ParentHook::parent_setup

The callback that must be specified for execution after the child has been cloned, but before it starts executing the new process.

This provides access to the child pid after its initialization to add tracking or modify execution state of the child before it executes the new process.


The documentation for this struct was generated from the following file: