1
#ifndef FORK_AND_RUN_H_
2
#define FORK_AND_RUN_H_
14
bool is_child(pid_t pid)
19
int fork_and_run(std::function<void()> child, std::function<void()> parent)
25
throw std::runtime_error(std::string("Could not fork child: ") + std::strerror(errno));
44
#endif // FORK_AND_RUN_H_