Commit 60deea69 authored by Steven Murray's avatar Steven Murray
Browse files

The GcDaemon class now inherits from the MultiThreadedDaemon class as opposed

to the BaseDaemon class.
parent 571b8986
......@@ -111,7 +111,7 @@ int main(int argc, char *argv[]) {
// Constructor
//-----------------------------------------------------------------------------
castor::gc::GcDaemon::GcDaemon(log::Logger &logger):
castor::server::BaseDaemon(logger) {
castor::server::MultiThreadedDaemon(logger) {
// Now with predefined messages
castor::dlf::Message messages[] = {
......
......@@ -30,7 +30,7 @@
#define GC_GCDAEMON_HPP 1
// Include files
#include "castor/server/BaseDaemon.hpp"
#include "castor/server/MultiThreadedDaemon.hpp"
#include "castor/exception/Exception.hpp"
namespace castor {
......@@ -40,7 +40,7 @@ namespace castor {
/**
* Garbage Collector daemon.
*/
class GcDaemon: public castor::server::BaseDaemon {
class GcDaemon: public castor::server::MultiThreadedDaemon {
public:
......
......@@ -55,8 +55,6 @@ public:
*/
const std::string &getServerName() const throw();
protected:
/**
* Sets the runAsStagerSuperuser flag to true.
*
......@@ -65,6 +63,8 @@ protected:
*/
void runAsStagerSuperuser() throw();
protected:
/**
* Initializes the DLF, both for streaming and regular messages
* Does not create the DLF thread, this is created after daemonization
......
Supports Markdown
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