Add new process function including fds
Based on BiPipe from MistPlayer branch v2: fix dup2 of wrong fd, fix invalid fd debug print
This commit is contained in:
parent
06167128bf
commit
b994bab6d2
2 changed files with 100 additions and 0 deletions
|
@ -23,6 +23,7 @@ namespace Util{
|
|||
static pid_t Start(std::string name, std::string cmd);
|
||||
static pid_t Start(std::string name, std::string cmd, std::string cmd2);
|
||||
static pid_t Start(std::string name, std::string cmd, std::string cmd2, std::string cmd3);
|
||||
static pid_t StartPiped(std::string name, char * argv[], int * fdin, int * fdout, int * fderr);
|
||||
static void Stop(std::string name);
|
||||
static void Stop(pid_t name);
|
||||
static void StopAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue