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