-class ForkedCallsController {
-public:
- /// Get hold of the only controller that can exist inside the process.
- static ForkedCallsController & get();
-
- /// Add a new child process to the list of controlled processes.
- void addCall(ForkedProcess const &);
-
- /** Those child processes that are found to have finished are removed
- * from the list and their callback function is passed the final
- * return state.
- */
- void handleCompletedProcesses();
-
- /** Kill this process prematurely and remove it from the list.
- * The process is killed within tolerance secs.
- * See forkedcall.[Ch] for details.
- */
- void kill(pid_t, int tolerance = 5);