mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Fix document substitution
This commit is contained in:
@@ -46,8 +46,10 @@ class TaskManagerController extends Controller
|
||||
|
||||
$this->getDispatcher()->addListener(KernelEvents::TERMINATE, function () use ($cmdLine) {
|
||||
$process = new Process($cmdLine);
|
||||
|
||||
$process->setTimeout(0);
|
||||
$process->disableOutput();
|
||||
|
||||
set_time_limit(0);
|
||||
ignore_user_abort(true);
|
||||
|
||||
@@ -65,6 +67,7 @@ class TaskManagerController extends Controller
|
||||
|
||||
$info = $this->getLiveInformationRequest();
|
||||
$data = $info->getManager();
|
||||
|
||||
if (null !== $pid = $data['process-id']) {
|
||||
if (substr(php_uname(), 0, 7) == "Windows"){
|
||||
exec(sprintf('TaskKill /PID %d', $pid));
|
||||
|
Reference in New Issue
Block a user