Skip to content

Fix SIGTERM handling and add missing psr/log dependency - #51

Merged
DavidBadura merged 1 commit into
1.6.xfrom
fix-signal-handling
Oct 2, 2026
Merged

DavidBadura merged 1 commit into
1.6.xfrom
fix-signal-handling

Conversation

@DavidBadura

Copy link
Copy Markdown
Member

The SIGTERM listener registered its handler with pcntl_signal, but async signals were never enabled and pcntl_signal_dispatch was never called, so the handler didn't run. It only worked inside Symfony console commands because the console SignalRegistry enables async signals as a side effect. The listener now enables them itself, and there is a test that sends SIGTERM to the process.

psr/log is used directly (LoggerInterface, NullLogger as default in create) but was only pulled in through dev dependencies, so it is now a regular requirement. I also added ext-pcntl to suggest.

Two small fixes on the side: the memory limit log message said "512.0 MiB bytes", and the Worker::run docblock claimed microseconds instead of milliseconds.

The SIGTERM handler was registered but never executed, because async
signals were not enabled. It only worked inside Symfony console commands,
where the SignalRegistry enables them as a side effect.

psr/log is used directly but was only installed through dev dependencies.
@DavidBadura DavidBadura added this to the 1.6.0 milestone Oct 2, 2026
@DavidBadura DavidBadura added the bug Something isn't working label Oct 2, 2026
@DavidBadura
DavidBadura merged commit 479114d into 1.6.x Oct 2, 2026
16 checks passed
@DavidBadura
DavidBadura deleted the fix-signal-handling branch October 2, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants