The frontend worker can now fork background processes

This commit is contained in:
Michael 2016-11-29 22:40:19 +00:00
commit cc5eebd173
2 changed files with 27 additions and 0 deletions

View file

@ -14,6 +14,11 @@ function worker_init($a){
return;
}
// We don't need the following lines if we can execute background jobs
if (function_exists("proc_open")) {
return;
}
clear_worker_processes();
$workers = q("SELECT COUNT(*) AS `processes` FROM `process` WHERE `command` = 'worker.php'");