DDS  ver. 3.6
Classes | Namespaces | Typedefs | Functions
Process.h File Reference
#include <dirent.h>
#include <fcntl.h>
#include <regex.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 <boost/asio.hpp>
#include <boost/asio/deadline_timer.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/process.hpp>
#include "CustomIterator.h"
#include "ErrorCode.h"
#include "MiscUtils.h"
#include "SysHelper.h"
#include "stlx.h"

Go to the source code of this file.

Classes

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

Namespaces

 dds
 Miscellaneous functions and helpers are located here.
 
 dds::misc
 

Typedefs

typedef std::vector< pid_t > dds::misc::vectorPid_t
 

Functions

bool dds::misc::IsProcessRunning (pid_t _PID)
 The function checks, whether the process which corresponds to the given _PID can be found. More...
 
vectorPid_t dds::misc::getprocbyname (const std::string &_Srv, bool _filterForRealUserID=false)
 _filterForRealUserID is an OS X specific argument More...
 
bool dds::misc::is_status_ok (int status)
 
pid_t dds::misc::execute (const std::string &_Command, const std::string &_stdoutFileName, const std::string &_stderrFileName, std::string *_outputFilesAccessPermissions=nullptr)
 
void dds::misc::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 dds::misc::execute (const std::string &_Command, const std::chrono::seconds &_Timeout, std::string *_output=nullptr, std::string *_errout=nullptr, int *_exitCode=nullptr)