[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/LOOLKit.cpp loolwsd/LOOLWSD.cpp

Henry Castro hcastro at collabora.com
Mon Aug 17 20:14:49 PDT 2015


 loolwsd/LOOLKit.cpp |    7 ++++++-
 loolwsd/LOOLWSD.cpp |    2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit fd3d956033d77e6e1925e7b3dcd60e028662fb13
Author: Henry Castro <hcastro at collabora.com>
Date:   Mon Aug 17 23:14:37 2015 -0400

    loolwsd: update thread, process names

diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp
index a4c9a0c..bacb2dc 100644
--- a/loolwsd/LOOLKit.cpp
+++ b/loolwsd/LOOLKit.cpp
@@ -62,7 +62,7 @@ public:
     void run() override
     {
 #ifdef __linux
-      if (prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("prision_handler"), 0, 0, 0) != 0)
+      if (prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("queue_handler"), 0, 0, 0) != 0)
         std::cout << Util::logPrefix() << "Cannot set thread name :" << strerror(errno) << std::endl;
 #endif
         while (true)
@@ -88,6 +88,11 @@ void run_lok_main(const std::string &loSubPath, Poco::UInt64 _childId)
     assert (_childId != 0);
     assert (!loSubPath.empty());
 
+#ifdef __linux
+    if (prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("libreofficekit"), 0, 0, 0) != 0)
+        std::cout << Util::logPrefix() << "Cannot set thread name :" << strerror(errno) << std::endl;
+#endif
+
     try
     {
 #ifdef __APPLE__
diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 71f4055..9d94768 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -235,7 +235,7 @@ public:
     void run() override
     {
 #ifdef __linux
-        if (prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("client_handler"), 0, 0, 0) != 0)
+        if (prctl(PR_SET_NAME, reinterpret_cast<unsigned long>("queue_handler"), 0, 0, 0) != 0)
             std::cout << Util::logPrefix() << "Cannot set thread name :" << strerror(errno) << std::endl;
 #endif
         while (true)


More information about the Libreoffice-commits mailing list