swiftlang / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages
Apache License 2.0
3.2k stars 264 forks source link

Send `SIGKILL` to `swift-frontend` indexing processes #1500

Closed ahoppen closed 1 week ago

ahoppen commented 1 week ago

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 commented 1 week ago

@swift-ci Please test

ahoppen commented 1 week ago

@swift-ci Please test