11 #include <boost/shared_ptr.hpp> 45 PIDFile(
const std::string& filename);
69 void write(
int)
const;
79 void deleteFile()
const;
88 std::string filename_;
PIDCantReadPID(const char *file, size_t line, const char *what)
Exception thrown when an error occurs during PID file processing.
Class to help with processing PID files.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-lfc.
boost::shared_ptr< PIDFile > PIDFilePtr
Defines a shared pointer to a PIDFile.
PIDFileError(const char *file, size_t line, const char *what)
Exception thrown when an error occurs trying to read a PID from an opened file.
std::string getFilename() const
Returns the path to the PID file.