From a5946b46250a7fd4a63f16c6c0606b0147b13e79 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Mon, 25 Nov 2019 10:49:57 -0500 Subject: [PATCH] wsd: use SIGKILL to kill a child This is the cleanest way to achieve the goal of immediately exiting a child. This is used for cleaning up kit instances when closing docs, as well as in unit-tests. Change-Id: I76870234b130a508044044b102419646abe81ac8 Reviewed-on: https://gerrit.libreoffice.org/83699 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian --- common/SigUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/SigUtil.cpp b/common/SigUtil.cpp index 59c133771..f511aca60 100644 --- a/common/SigUtil.cpp +++ b/common/SigUtil.cpp @@ -346,7 +346,7 @@ namespace SigUtil bool killChild(const int pid) { LOG_DBG("Killing PID: " << pid); - if (kill(pid, SIGABRT) == 0 || errno == ESRCH) + if (kill(pid, SIGKILL) == 0 || errno == ESRCH) { // Killed or doesn't exist. return true;