diff --git a/services/histserv/app/Application.h b/services/histserv/app/Application.h index 29993ea08eed6f894517b5da73733dcec0985fba..2a14d8124b9edb629e2a1971b9d8c58334cf920a 100644 --- a/services/histserv/app/Application.h +++ b/services/histserv/app/Application.h @@ -25,21 +25,21 @@ namespace cbm::services::histserv public: /** @brief Standard constructor, initialises the application ** @param opt **/ - explicit Application(ProgramOptions const& opt, volatile sig_atomic_t* signalStatus); + explicit Application(ProgramOptions const& opt, volatile sig_atomic_t* signalStatus); - /** @brief Copy constructor forbidden **/ - Application(const Application&) = delete; + /** @brief Copy constructor forbidden **/ + Application(const Application&) = delete; - /** @brief Assignment operator forbidden **/ - void operator=(const Application&) = delete; + /** @brief Assignment operator forbidden **/ + void operator=(const Application&) = delete; - /** @brief Destructor **/ - ~Application(); + /** @brief Destructor **/ + ~Application(); - /** @brief Run the application **/ - void Exec(); + /** @brief Run the application **/ + void Exec(); - void UpdateHttpServer(); + void UpdateHttpServer(); private: //const std::string& ConfigFile() const; @@ -84,7 +84,7 @@ namespace cbm::services::histserv private: ProgramOptions const& fOpt; ///< Program options object - volatile sig_atomic_t* fSignalStatus; ///< Global signal status + volatile sig_atomic_t* fSignalStatus; ///< Global signal status THttpServer* fServer = nullptr; ///< ROOT Histogram server (JSroot) std::thread fThread; bool fStopThread = false; diff --git a/services/histserv/app/main.cxx b/services/histserv/app/main.cxx index 61d1931a87be6e1001ad6d6542424a448bce4f17..1881ff1284b9246da5b704e847f1f0e3c1efc93c 100644 --- a/services/histserv/app/main.cxx +++ b/services/histserv/app/main.cxx @@ -1,14 +1,16 @@ /* Copyright (C) 2023 Facility for Antiproton and Ion Research in Europe, Darmstadt SPDX-License-Identifier: GPL-3.0-only Authors: Pierre-Alain Loizeau [committer] */ -#include <Logger.h> - #include "Application.h" #include "ProgramOptions.h" + +#include <Logger.h> + #include <csignal> -namespace { -volatile sig_atomic_t signal_status = 0; +namespace +{ + volatile sig_atomic_t signal_status = 0; } static void signal_handler(int sig) { signal_status = sig; }