From 0ca76699840a576fdcd5f2fbbb9e0173b3f17e8d Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Tue, 30 May 2017 10:17:23 +0100 Subject: [PATCH] service_record: declare handle_exit_status as pure virtual. --- src/service.cc | 5 ----- src/service.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/service.cc b/src/service.cc index 466a523..3d66e3a 100644 --- a/src/service.cc +++ b/src/service.cc @@ -155,11 +155,6 @@ bool ServiceRecord::do_auto_restart() noexcept return false; } -void base_process_service::handle_exit_status(int exit_status) noexcept -{ - // TODO make abstract -} - void process_service::handle_exit_status(int exit_status) noexcept { bool did_exit = WIFEXITED(exit_status); diff --git a/src/service.h b/src/service.h index b4bc815..ebe74b5 100644 --- a/src/service.h +++ b/src/service.h @@ -565,7 +565,7 @@ class base_process_service : public ServiceRecord bool start_ps_process(const std::vector &args, bool on_console) noexcept; virtual void all_deps_stopped() noexcept; - virtual void handle_exit_status(int exit_status) noexcept; + virtual void handle_exit_status(int exit_status) noexcept = 0; // Read the pid-file, return false on failure bool read_pid_file() noexcept; -- 2.25.1