mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support gmd. change work_dir. hourglass. add utilies.
This commit is contained in:
parent
c9b977d337
commit
f1e7e9d933
33 changed files with 702 additions and 73 deletions
|
@ -61,10 +61,15 @@ private:
|
|||
std::vector<std::string> params;
|
||||
// the cli to fork process.
|
||||
std::string cli;
|
||||
std::string actual_cli;
|
||||
public:
|
||||
SrsProcess();
|
||||
virtual ~SrsProcess();
|
||||
public:
|
||||
/**
|
||||
* get pid of process.
|
||||
*/
|
||||
virtual int get_pid();
|
||||
/**
|
||||
* whether process is already started.
|
||||
*/
|
||||
|
@ -73,6 +78,7 @@ public:
|
|||
* initialize the process with binary and argv.
|
||||
* @param binary the binary path to exec.
|
||||
* @param argv the argv for binary path, the argv[0] generally is the binary.
|
||||
* @remark the argv[0] must be the binary.
|
||||
*/
|
||||
virtual int initialize(std::string binary, std::vector<std::string> argv);
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue