}
}
-rearm ServiceIoWatcher::fd_event(eventloop_t &loop, int fd, int flags) noexcept
+rearm exec_status_pipe_watcher::fd_event(eventloop_t &loop, int fd, int flags) noexcept
{
base_process_service *sr = service;
sr->waiting_for_execstat = false;
service_child_watcher(base_process_service * sr) noexcept : service(sr) { }
};
-class ServiceIoWatcher : public eventloop_t::fd_watcher_impl<ServiceIoWatcher>
+// Watcher for the pipe used to receive exec() failure status errno
+class exec_status_pipe_watcher : public eventloop_t::fd_watcher_impl<exec_status_pipe_watcher>
{
public:
base_process_service * service;
rearm fd_event(eventloop_t &eloop, int fd, int flags) noexcept;
- ServiceIoWatcher(base_process_service * sr) noexcept : service(sr) { }
+ exec_status_pipe_watcher(base_process_service * sr) noexcept : service(sr) { }
};
class service_record
class base_process_service : public service_record
{
friend class service_child_watcher;
- friend class ServiceIoWatcher;
+ friend class exec_status_pipe_watcher;
friend class process_restart_timer;
private:
protected:
service_child_watcher child_listener;
- ServiceIoWatcher child_status_listener;
+ exec_status_pipe_watcher child_status_listener;
process_restart_timer restart_timer;
timespec last_start_time;