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:
parent
717d3132b2
commit
a5946b4625
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue