llvm-project/clang-tools-extra/clangd/tool
Sam McCall 8bda5f2067 [clangd] abort if shutdown takes more than a minute.
Summary:
A certain class of bug (e.g. infloop on an AST worker thread) currently means
clangd never terminates, even if the editor shuts down the protocol and closes
our stdin, and the main thread recognizes that.

Instead, let's wait 60 seconds for threads to finish cleanly, and then crash
if they haven't.

(Obviously, we should still fix these bugs).

Reviewers: kadircet

Subscribers: MaskRay, jkorous, arphaman, jfb, usaxena95, cfe-commits, ilya-biryukov

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69329
2019-10-23 17:52:59 +02:00
..
CMakeLists.txt [clangd] Add the missing dependency on `clangLex`. 2019-10-16 20:22:54 +00:00
ClangdMain.cpp [clangd] abort if shutdown takes more than a minute. 2019-10-23 17:52:59 +02:00