Skip to content

[6.0] Send SIGKILL to swift-frontend indexing processes #1525

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

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 26, 2024

  • Explanation: We were sending SIGINT to swift-frontend processes if they didn’t terminate after 2 minutes. However, swift-frontend doesn’t listen to SIGINT.

If a task running waitUntilExitStoppingProcessOnTaskCancellation is cancelled and the process doesn’t terminate on a SIGINT after 2 seconds, kill it.

@ahoppen ahoppen requested a review from bnbarham June 26, 2024 20:28
We were sending `SIGINT` to `swift-frontend` processes if they didn’t terminate after 2 minutes. However, `swift-frontend` doesn’t listen to `SIGINT`.

If a task running `waitUntilExitStoppingProcessOnTaskCancellation` is cancelled and the process doesn’t terminate on a `SIGINT` after 2 seconds, kill it.

rdar://130103147
@ahoppen ahoppen force-pushed the 6.0/fix-index-cancellation branch from 9f8dbb0 to 2bcd145 Compare June 26, 2024 20:29
@ahoppen
Copy link
Member Author

ahoppen commented Jun 26, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit f33ea39 into swiftlang:release/6.0 Jun 27, 2024
3 checks passed
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.

2 participants