11#include <boost/noncopyable.hpp>
28class ProcessSpawnImpl;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Exception thrown when error occurs during spawning a process.
ProcessSpawnError(const char *file, size_t line, const char *what)
Implementation of the ProcessSpawn class.
Utility class for spawning new processes.
bool isRunning(const pid_t pid) const
Checks if the process is still running.
bool isAnyRunning() const
Checks if any of the spawned processes is still running.
int getExitStatus(const pid_t pid) const
Returns exit status of the process.
std::string getCommandLine() const
Returns full command line, including arguments, for the process.
pid_t spawn()
Spawn the new process.
~ProcessSpawn()
Destructor.
void clearState(const pid_t pid)
Removes the status of the process with a specified PID.
std::vector< std::string > ProcessArgs
Type of the container holding arguments of the executable being run as a background process.
Defines the logger used by the top-level component of kea-dhcp-ddns.