[Libreoffice-commits] online.git: loolwsd/LOOLForKit.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Wed Apr 6 13:52:42 UTC 2016
loolwsd/LOOLForKit.cpp | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 0aa60f8745058bb5fbd12b37a841fe106a32c85a
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
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 <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
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;
More information about the Libreoffice-commits
mailing list