summaryrefslogtreecommitdiff
path: root/dev/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'dev/lsp')
-rw-r--r--dev/lsp/lsp_client.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/lsp/lsp_client.zig b/dev/lsp/lsp_client.zig
index 4ad8dace..fdd4af55 100644
--- a/dev/lsp/lsp_client.zig
+++ b/dev/lsp/lsp_client.zig
@@ -2244,8 +2244,9 @@ fn reap(pid: libc.pid_t) void {
/// At this process's exit, every server's group is killed: a server busy
/// in a build (zls at a cold start) would not notice its socket close, and
/// lived on with its children after the editor. Registered once, at the
-/// first spawn; signals only, no locks (other threads may hold them).
-fn killAllAtExit() callconv(.c) void {
+/// first spawn; signals only, no locks (other threads may hold them): a
+/// signal's handler calls it too (tui.zig `Killed`).
+pub fn killAllAtExit() callconv(.c) void {
for (&conns) |*c| if (c.pid > 0) {
_ = libc.kill(-c.pid, .KILL);
};