CheckerSide* child_checker_ = nullptr;
void setup_events(bool socket_only); // Part of the initialization
CheckerSide* child_checker_ = nullptr;
void setup_events(bool socket_only); // Part of the initialization
void handle_dead_child(int status); // Launched when the dying child is the PID we follow
void handle_waitpid(); // Launched when receiving a sigchild
public:
explicit CheckerSide(int socket, CheckerSide* child_checker);
void handle_dead_child(int status); // Launched when the dying child is the PID we follow
void handle_waitpid(); // Launched when receiving a sigchild
public:
explicit CheckerSide(int socket, CheckerSide* child_checker);
pid_t get_pid() const { return pid_; }
bool running() const { return running_; }
void terminate() { running_ = false; }
pid_t get_pid() const { return pid_; }
bool running() const { return running_; }
void terminate() { running_ = false; }