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

New commits:
commit 0aa60f8745058bb5fbd12b37a841fe106a32c85a
Author: Ashod Nakashian <[email protected]>
Date:   Wed Apr 6 08:16:56 2016 -0400

    loolwsd: ignore SIGCHLD and auto-reap zombies
    
    Change-Id: Ia927d4d01c38a8929a47fb8aa014f0ed5896f8ed
    Reviewed-on: https://gerrit.libreoffice.org/23859
    Reviewed-by: Ashod Nakashian <[email protected]>
    Tested-by: Ashod Nakashian <[email protected]>

diff --git a/loolwsd/LOOLForKit.cpp b/loolwsd/LOOLForKit.cpp
index 1bfbdae..e762d77 100644
--- a/loolwsd/LOOLForKit.cpp
+++ b/loolwsd/LOOLForKit.cpp
@@ -151,6 +151,13 @@ int main(int argc, char** argv)
     Util::setTerminationSignals();
     Util::setFatalSignals();
 
+    // Auto-reap zombies.
+    if (signal(SIGCHLD, SIG_IGN) == SIG_ERR)
+    {
+        Log::error("Failed to set SIGCHLD to SIG_IGN.");
+        return 1;
+    }
+
     std::string childRoot;
     std::string loSubPath;
     std::string sysTemplate;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to