Apache Mesos
|
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 |
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.
process::Subprocess::ParentHook::ParentHook | ( | const lambda::function< Try< Nothing >(pid_t)> & | _parent_setup | ) |
|
friend |
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.