DDS  ver. 1.6
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 "def.h"
#include "stlx.h"

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::IsProcessExist (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::do_execv_std2file (const std::string &_Command, std::string _stdoutFileName, std::string _stderrFileName)
 
void MiscCommon::do_execv (const std::string &_Command) throw (std::exception)
 We do not want the parent process to wait for its child process and we do not want to create a zombie. We use double fork to achieve this. More...
 
pid_t MiscCommon::do_execv (const std::string &_Command, size_t _Delay, std::string *_output, std::string *_errout=nullptr, int *_exitCode=nullptr) throw (std::exception)