29 #ifndef __UTILS_COMMAND_EXECUTOR_LINUX_OSAL_H__ 30 #define __UTILS_COMMAND_EXECUTOR_LINUX_OSAL_H__ 106 char*
const envp[])
const override;
This class is a high level interface added to ease testability of component that use Executor...
Definition: IOsal.h:51
void dropPrivileges() const override
Permanently drop the privileges of the process.
void sanitizeFiles() const override
Close all opened file descriptors except those related to the standard streams (stdin, stdout, stderr). These are only reopened to /dev/null if not already opened.
This class is the "low level class" that implements IOsal.h.
Definition: Linux.h:53
std::unique_ptr< Internal > m_internal
Definition: Linux.h:127
ProcessId createProcess() const override
creates a new process by duplicating the calling process. It can basically be a wrapper to fork() cal...
void waitChildProcess() const override
Wait for any child process whose process group ID is equal to that of the calling process...
void reseedPRNG() const override
Initialize the Random Number Generator for a new sequence of pseudo-random integers to be returned by...
void executeProgram(const char *pathname, char *const argv[], char *const envp[]) const override
Execute the program referred to by pathname.
Linux & operator=(const Linux &)=delete
ProcessId
An id to inform caller about the current process type after a new process has been created...
Definition: IOsal.h:60