mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
We implicitly close the connection when the input file descriptor is closed, or if it has an error. But we also close things down explicitly when we see the exit notification. We need to protect against a race triggering us to call the close handler multiple times. This was resulting in `sourcekit-lsp` racing to call `exit(0)`, which triggered a double-free and abort on Linux.