#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.
|
| | MiscCommon |
| | Miscellaneous functions and helpers are located here.
|
| |
|
| 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) |
| |