diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 0a11e55..81c8bb9 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -3,8 +3,6 @@ name: PHPUnit Tests on: push: branches: [ "**" ] - pull_request: - branches: [ "main" ] permissions: contents: read diff --git a/CHANGELOG.md b/CHANGELOG.md index ed50774..40f666e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## Release [v7.1.1](https://github.com/sweikenb/pcntl/releases/tag/v7.1.1) + +**Bugfixes** + +- Set proper exit-code `130` when the `SIGINT`-signal is received + +* * * + ## Release [v7.1.0](https://github.com/sweikenb/pcntl/releases/tag/v7.1.0) **Features** diff --git a/src/ProcessManager.php b/src/ProcessManager.php index 4fe626d..f0500ad 100644 --- a/src/ProcessManager.php +++ b/src/ProcessManager.php @@ -104,6 +104,9 @@ public function handleSignal(int $signal): void } else { $this->sendSignalToChildren($signal); } + if ($signal === SIGINT) { + exit(130); // ctrl + c + } } public function sendSignalToChildren(int $signal, ?callable $callback = null): void