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.
Scope: Background indexing if a swift-frontend or clang process takes more than 2 minutes
Risk: Low, we would mostly be stuck in indexing in these cases
SIGINT
toswift-frontend
processes if they didn’t terminate after 2 minutes. However,swift-frontend
doesn’t listen toSIGINT
.If a task running
waitUntilExitStoppingProcessOnTaskCancellation
is cancelled and the process doesn’t terminate on aSIGINT
after 2 seconds, kill it.swift-frontend
orclang
process takes more than 2 minutes