|
MySQL 5.6.14 Source Code Document
|
Manages a process. More...
#include <CPCD.hpp>

Public Member Functions | |
| Process (const Properties &props, class CPCD *cpcd) | |
| Constructs and empty Process. | |
| void | monitor () |
| Monitors the process. | |
| bool | isRunning () |
| Checks if the process is running or not. | |
| int | start () |
| Starts the process. | |
| void | stop () |
| Stops the process. | |
| int | readPid () |
| Reads the pid from stable storage. | |
| int | writePid (int pid) |
| Writes the pid from stable storage. | |
| void | print (FILE *) |
| Prints a textual description of the process on a file. | |
Public Attributes | |
| int | m_id |
| BaseString | m_name |
| The name shown to the user. | |
| BaseString | m_group |
| Used to group a number of processes. | |
| BaseString | m_env |
| Environment variables. | |
| BaseString | m_path |
| Path to the binary to run. | |
| BaseString | m_args |
| Arguments to the process. | |
| BaseString | m_type |
| Type of process. | |
| ProcessType | m_processType |
| BaseString | m_cwd |
| Working directory. | |
| BaseString | m_owner |
| Owner of the process. | |
| BaseString | m_runas |
| BaseString | m_stdin |
| redirection for stdin | |
| BaseString | m_stdout |
| redirection for stdout | |
| BaseString | m_stderr |
| redirection for stderr | |
| enum ProcessStatus | m_status |
| Status of the process. | |
| BaseString | m_ulimit |
| ulimits for process Format c:unlimited d:0 ... | |
| BaseString | m_shutdown_options |
| shutdown options | |
| bool CPCD::Process::isRunning | ( | ) |
Checks if the process is running or not.
Definition at line 119 of file Process.cpp.
| void CPCD::Process::monitor | ( | ) |
Monitors the process.
The process is started or stopped as needed.
Definition at line 97 of file Process.cpp.
| int CPCD::Process::readPid | ( | ) |
Reads the pid from stable storage.
Definition at line 170 of file Process.cpp.


| int CPCD::Process::start | ( | ) |
Starts the process.
Simple fork don't ignore child
PERMANENT
Definition at line 550 of file Process.cpp.

| int CPCD::Process::writePid | ( | int | pid | ) |
Writes the pid from stable storage.
Definition at line 215 of file Process.cpp.

| BaseString CPCD::Process::m_args |
| BaseString CPCD::Process::m_cwd |
| BaseString CPCD::Process::m_env |
| int CPCD::Process::m_id |
| BaseString CPCD::Process::m_owner |
| BaseString CPCD::Process::m_runas |
| BaseString CPCD::Process::m_type |