Skip to content

Conversation

@biinari
Copy link
Contributor

@biinari biinari commented Oct 1, 2025

Alternative to #141 to fix running on a system that does not have pcntl extension enabled.

Solution

Stop passing SIGTERM (defined in pcntl extension) to Symfony\Component\Process\Process->stop(), allowing it to use the default. This default behavior is to signal with SIGTERM and if the process fails to stop before the timeout, signal again with SIGKILL.

I considered increasing the timeout to ensure playwright server has sufficient time to stop from the initial SIGTERM signal. My measurements show it stopping in under 1 millisecond so 0.1 seconds seems ample.

Remove need for ext-pcntl / ext-posix by using the default signals to stop
playwright process.

Default is to use SIGTERM, followed by a SIGKILL after the given timeout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant