Commit a4c47bf5 authored by Francis Dupont's avatar Francis Dupont

[154-netconf-disable-reload] Added processSignal redefine

parent 8ddd1a7b
...@@ -34,6 +34,15 @@ NetconfController::instance() { ...@@ -34,6 +34,15 @@ NetconfController::instance() {
return (getController()); return (getController());
} }
void
NetconfController::processSignal(int signum) {
if (signum == SIGHUP) {
LOG_WARN(dctl_logger, DCTL_UNSUPPORTED_SIGNAL).arg(signum);
} else {
DControllerBase::processSignal(signum);
}
}
DProcessBase* DProcessBase*
NetconfController::createProcess() { NetconfController::createProcess() {
// Instantiate and return an instance of the D2 application process. Note // Instantiate and return an instance of the D2 application process. Note
......
...@@ -51,6 +51,13 @@ public: ...@@ -51,6 +51,13 @@ public:
isc::data::ConstElementPtr isc::data::ConstElementPtr
parseFile(const std::string& name); parseFile(const std::string& name);
/// @brief Redefined application-level signal processing method.
///
/// This method ignores SIGHUP as configuration reloading is not yet
/// supported.
/// @param signum signal number to process.
virtual void processSignal(int signum);
private: private:
/// @brief Creates an instance of the Netconf application process. /// @brief Creates an instance of the Netconf application process.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment