Made Util::Procs::childRunning a public function

This commit is contained in:
Thulinma 2017-07-15 14:07:28 +02:00
parent c21260dfb3
commit efcb038a26

View file

@ -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();