diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2019-11-26 18:45:38 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-04-29 14:27:54 +0200 |
commit | 8b349716eb58c1024f21627f78f8e66657e24bf2 (patch) | |
tree | 2c21449a127e7f7350363aec70e98c3ecbe2505f /wsd/AdminModel.hpp | |
parent | Mobile: search icon: fix size (diff) | |
download | online-8b349716eb58c1024f21627f78f8e66657e24bf2.tar.gz online-8b349716eb58c1024f21627f78f8e66657e24bf2.zip |
killpoco: removed Poco::Process completely
Change-Id: Iba67abf9342c11517c69c1d94903bf4752aa87d6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/83770
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'wsd/AdminModel.hpp')
-rw-r--r-- | wsd/AdminModel.hpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/wsd/AdminModel.hpp b/wsd/AdminModel.hpp index 862b02b1bc..63f61d5c98 100644 --- a/wsd/AdminModel.hpp +++ b/wsd/AdminModel.hpp @@ -15,8 +15,6 @@ #include <cmath> #include <list> -#include <Poco/Process.h> - #include "Log.hpp" #include "net/WebSocketHandler.hpp" #include "Util.hpp" @@ -106,7 +104,7 @@ class Document public: Document(const std::string& docKey, - Poco::Process::PID pid, + pid_t pid, const std::string& filename) : _docKey(docKey), _pid(pid), @@ -135,7 +133,7 @@ public: const std::string getDocKey() const { return _docKey; } - Poco::Process::PID getPid() const { return _pid; } + pid_t getPid() const { return _pid; } std::string getFilename() const { return _filename; } @@ -189,7 +187,7 @@ public: private: const std::string _docKey; - const Poco::Process::PID _pid; + const pid_t _pid; /// SessionId mapping to View object std::map<std::string, View> _views; /// Total number of active views @@ -291,7 +289,7 @@ public: void unsubscribe(int sessionId, const std::string& command); - void modificationAlert(const std::string& docKey, Poco::Process::PID pid, bool value); + void modificationAlert(const std::string& docKey, pid_t pid, bool value); void clearMemStats() { _memStats.clear(); } @@ -311,7 +309,7 @@ public: void notify(const std::string& message); - void addDocument(const std::string& docKey, Poco::Process::PID pid, const std::string& filename, + void addDocument(const std::string& docKey, pid_t pid, const std::string& filename, const std::string& sessionId, const std::string& userName, const std::string& userId, const int smapsFD); |