Use getmypid() as dependency (improve testing)

This commit is contained in:
Philipp 2020-09-19 20:28:01 +02:00
parent 7413b362f5
commit c9e510d4fd
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
3 changed files with 4 additions and 3 deletions

View file

@ -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.