From: Davin McCall Date: Tue, 30 May 2017 09:17:23 +0000 (+0100) Subject: service_record: declare handle_exit_status as pure virtual. X-Git-Tag: v0.06~116 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0ca76699840a576fdcd5f2fbbb9e0173b3f17e8d;p=oweals%2Fdinit.git service_record: declare handle_exit_status as pure virtual. --- 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;