mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:50:10 +00:00
Fix namespace issue with posix function in Worker\Repository\Process
- [Composer] Add ext-posix dependency - [Composer] Sort latest added dependencies alphabetically - Address https://github.com/friendica/friendica/issues/12486#issuecomment-1492842672
This commit is contained in:
parent
f1843c8aac
commit
508807af1c
2 changed files with 5 additions and 4 deletions
|
@ -112,7 +112,7 @@ class Process extends BaseRepository
|
|||
try {
|
||||
$processes = $this->db->select(static::$table_name, ['pid'], ['hostname' => $this->currentHost]);
|
||||
while ($process = $this->db->fetch($processes)) {
|
||||
if (!posix_kill($process['pid'], 0)) {
|
||||
if (!\posix_kill($process['pid'], 0)) {
|
||||
$this->db->delete(static::$table_name, ['pid' => $process['pid']]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue