[Libreoffice-commits] online.git: loolwsd/Util.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Nov 7 06:32:55 UTC 2016


 loolwsd/Util.cpp |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit f3d5b73c4e4e3879b036e8202a3486cb9658ef51
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sun Nov 6 10:50:43 2016 -0500

    loolwsd: sleep more with LOOL_DEBUG after dumping stacktrace
    
    Change-Id: I52d764634af3faa0b08d7c4ff7483e0dcc1db312
    Reviewed-on: https://gerrit.libreoffice.org/30630
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/Util.cpp b/loolwsd/Util.cpp
index ffcbf03..1b9a63c 100644
--- a/loolwsd/Util.cpp
+++ b/loolwsd/Util.cpp
@@ -404,6 +404,7 @@ namespace Util
         if (std::getenv("LOOL_DEBUG"))
         {
             Log::signalLog(FatalGdbString);
+            LOG_ERR("Sleeping 30s to allow debugging.");
             sleep(30);
         }
 
@@ -444,6 +445,12 @@ namespace Util
             }
         }
 
+        if (std::getenv("LOOL_DEBUG"))
+        {
+            LOG_ERR("Sleeping 30s to allow debugging.");
+            sleep(30);
+        }
+
         // let default handler process the signal
         kill(Poco::Process::id(), signal);
     }


More information about the Libreoffice-commits mailing list