Made Util::Procs::childRunning a public function
This commit is contained in:
parent
c21260dfb3
commit
efcb038a26
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,6 @@ namespace Util {
|
||||||
/// Deals with spawning, monitoring and stopping child processes
|
/// Deals with spawning, monitoring and stopping child processes
|
||||||
class Procs {
|
class Procs {
|
||||||
private:
|
private:
|
||||||
static bool childRunning(pid_t p);
|
|
||||||
static tthread::mutex plistMutex;
|
static tthread::mutex plistMutex;
|
||||||
static std::set<pid_t> plist; ///< Holds active process list.
|
static std::set<pid_t> plist; ///< Holds active process list.
|
||||||
static bool thread_handler;///< True while thread handler should be running.
|
static bool thread_handler;///< True while thread handler should be running.
|
||||||
|
@ -25,6 +24,7 @@ namespace Util {
|
||||||
static char* const* dequeToArgv(std::deque<std::string> & argDeq);
|
static char* const* dequeToArgv(std::deque<std::string> & argDeq);
|
||||||
static void grim_reaper(void * n);
|
static void grim_reaper(void * n);
|
||||||
public:
|
public:
|
||||||
|
static bool childRunning(pid_t p);
|
||||||
static tthread::thread * reaper_thread;
|
static tthread::thread * reaper_thread;
|
||||||
static bool handler_set; ///< If true, the sigchld handler has been setup.
|
static bool handler_set; ///< If true, the sigchld handler has been setup.
|
||||||
static void setHandler();
|
static void setHandler();
|
||||||
|
|
Loading…
Add table
Reference in a new issue