From 54001d1ec4f6a8939656a9a9067358cfef2945d6 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 17 Sep 2023 17:08:30 +0000 Subject: [PATCH] improve process kill --- Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index beb2344..402c003 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -703,7 +703,7 @@ final class ApiController extends Controller // @todo: create a separate function which is called async minTime - time seconds after // This solution is just a workaround for small lists which would otherwise be forced to wait at least 60 seconds. if (OperatingSystem::getSystem() === SystemType::LINUX) { - SystemUtils::runProc('pkill', '-f wkhtmltoimage', true); + SystemUtils::runProc('pkill', '-9 -f wkhtmltoimage', true); } else { SystemUtils::runProc('taskkill', '/F /IM wkhtmltoimage.exe', true); }