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