Previously, we'd pass a nullptr to std::string and crash().
This case happens when the binary is deleted while being used (e.g. rebuilding clangd).
Differential D64068
getMainExecutable: handle realpath() failure, falling back to getprogpath(). sammccall on Jul 2 2019, 4:53 AM. Authored by
Details Previously, we'd pass a nullptr to std::string and crash(). This case happens when the binary is deleted while being used (e.g. rebuilding clangd).
Diff Detail
|