mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:50:11 +00:00
Use getmypid() as dependency (improve testing)
This commit is contained in:
parent
7413b362f5
commit
c9e510d4fd
3 changed files with 4 additions and 3 deletions
|
@ -1172,7 +1172,7 @@ class Worker
|
|||
$args = ['no_cron' => !$do_cron];
|
||||
|
||||
$a = DI::app();
|
||||
$process = new Core\Process(DI::logger(), DI::mode(), DI::config(), $a->getBasePath());
|
||||
$process = new Core\Process(DI::logger(), DI::mode(), DI::config(), DI::modelProcess(), $a->getBasePath(), getmypid());
|
||||
$process->run($command, $args);
|
||||
|
||||
// after spawning we have to remove the flag.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue