Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: PHPUnit Tests
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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**
Expand Down
3 changes: 3 additions & 0 deletions src/ProcessManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down