Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: send SIGTERM to webserver before SIGKILL'ing it. #18220

Merged

Conversation

aslushnikov
Copy link
Collaborator

We now will send SIGTERM to the webserver and wait for the timeout
before sending SIGKILL to it.

Fixes #18209

docs/src/test-api/class-testconfig.md Outdated Show resolved Hide resolved
packages/playwright-test/src/plugins/webServerPlugin.ts Outdated Show resolved Hide resolved
tests/playwright-test/web-server.spec.ts Show resolved Hide resolved
packages/playwright-core/src/utils/processLauncher.ts Outdated Show resolved Hide resolved
We now will send `SIGTERM` to the webserver and wait for the `timeout`
before sending `SIGKILL` to it.

Fixes microsoft#18209
@aslushnikov aslushnikov force-pushed the sigterm-webserver-before-sigkill branch from c81c214 to fe21e60 Compare October 20, 2022 23:20
@aslushnikov aslushnikov merged commit c63a0b5 into microsoft:main Oct 21, 2022
@aslushnikov aslushnikov deleted the sigterm-webserver-before-sigkill branch October 21, 2022 15:55
aslushnikov added a commit to aslushnikov/playwright that referenced this pull request Nov 4, 2022
aslushnikov added a commit that referenced this pull request Nov 9, 2022
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.

[BUG] Killing webserver process should use SIGTERM on Linux, with SIGKILL as fallback
2 participants