Added piped process support to Util::Procs
This commit is contained in:
parent
c2df5be19f
commit
499899d405
5 changed files with 101 additions and 23 deletions
|
@ -14,8 +14,10 @@ namespace Util{
|
|||
static std::map<pid_t, std::string> plist; ///< Holds active processes
|
||||
static bool handler_set; ///< If true, the sigchld handler has been setup.
|
||||
static void childsig_handler(int signum);
|
||||
static void runCmd(std::string & cmd);
|
||||
public:
|
||||
static pid_t Start(std::string name, std::string cmd);
|
||||
static pid_t Start(std::string name, std::string cmd, std::string cmd2);
|
||||
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