From cb5757d3d9814807e98d96a36ecb67f2861793e1 Mon Sep 17 00:00:00 2001 From: Ivan Dmitriev <28255085+zKoz210@users.noreply.github.com> Date: Tue, 16 May 2023 13:17:11 +0300 Subject: [PATCH 1/2] Fixed #36 --- README.md | 1 + src/Fork.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 9f94ca8..0cfd557 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ on [our virtual postcard wall](https://spatie.be/open-source/postcards). This package requires PHP 8 and the [pcntl](https://www.php.net/manual/en/intro.pcntl.php) extensions which is installed in many Unix and Mac systems by default. ❗️ [pcntl](https://www.php.net/manual/en/intro.pcntl.php) only works in CLI processes, not in a web context. +❗️ [posix](https://www.php.net/manual/en/book.posix.php) required for correct handling of process termination for Alpine Linux. ## Installation diff --git a/src/Fork.php b/src/Fork.php index 1bcc2a1..3a841a2 100644 --- a/src/Fork.php +++ b/src/Fork.php @@ -127,6 +127,10 @@ protected function forkForTask(Task $task): Task $this->executeInChildTask($task, $socketToParent); + if (extension_loaded('posix')) { + posix_kill(getmypid(), SIGKILL); + } + exit; } From cbb83ea58e9494c457da27b8165ce8371ff7a748 Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Tue, 16 May 2023 17:17:20 +0200 Subject: [PATCH 2/2] php 8.2 --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f8a9760..c3ca994 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.1, 8.0] + php: [8.2, 8.1, 8.0] stability: [prefer-lowest, prefer-stable] name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}