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 <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian 2019-11-25 10:49:57 -05:00 committed by Ashod Nakashian
parent 717d3132b2
commit a5946b4625

View file

@ -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;