DDS  ver. 3.4
Classes | Namespaces | Typedefs | Functions
Process.h File Reference
#include <dirent.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <wordexp.h>
#include <fstream>
#include <iterator>
#include <memory>
#include <stdexcept>
#include <regex.h>
#include "CustomIterator.h"
#include "ErrorCode.h"
#include "MiscUtils.h"
#include "SysHelper.h"
#include "def.h"
#include "stlx.h"
#include <boost/asio.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/process.hpp>

Go to the source code of this file.

Classes

class  MiscCommon::CPIDFile
 A PID-file helper. More...
 
class  MiscCommon::CProcList
 This class is used to quarry a list of currently running processes. More...
 
class  MiscCommon::CProcStatus
 This class helps to retrieve process's information from /proc/<pid>/status. More...
 
struct  MiscCommon::SFindName
 

Namespaces

 MiscCommon
 Miscellaneous functions and helpers are located here.
 

Typedefs

typedef std::vector< pid_t > MiscCommon::vectorPid_t
 

Functions

bool MiscCommon::IsProcessRunning (pid_t _PID)
 The function checks, whether the process which corresponds to the given _PID can be found. More...
 
vectorPid_t MiscCommon::getprocbyname (const std::string &_Srv, bool _filterForRealUserID=false)
 
bool MiscCommon::is_status_ok (int status)
 
pid_t MiscCommon::execute (const std::string &_Command, const std::string &_stdoutFileName, const std::string &_stderrFileName)
 
void MiscCommon::execute (const std::string &_Command)
 We do not want the parent process to wait for its child process and we do not want to create a zombie. More...
 
pid_t MiscCommon::execute (const std::string &_Command, const std::chrono::seconds &_Timeout, std::string *_output=nullptr, std::string *_errout=nullptr, int *_exitCode=nullptr)