external: prevent a child process from killing a process on cleanup

This commit is contained in:
Simon Fels 2017-05-02 07:21:47 +02:00
commit bcdbdbac6a
2 changed files with 14 additions and 1 deletions

View file

@ -114,6 +114,12 @@ public:
*/
wait::Result wait_for(const wait::Flags& flags);
/**
* @brief Mark the child process to not to be killed when the ChildProcess
* instance goes away.
*/
void dont_kill_on_cleanup();
#ifndef ANDROID
/**
* @brief Access this process's stderr.