improve process kill

This commit is contained in:
Dennis Eichhorn 2023-09-17 17:08:30 +00:00
parent 248e336214
commit 54001d1ec4

View File

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