diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 13:39:12 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 164da9fc0a7ab3c7ed39ea0a2dd6bbff3c36cdaf (patch) | |
| tree | bba5867e52764c5d2f891b8e6861dfdeec068063 /src/lsp | |
| parent | fea3f2c5abf14aada5d9187b82985e51eb5b7a98 (diff) | |
| download | pardes-164da9fc0a7ab3c7ed39ea0a2dd6bbff3c36cdaf.tar.gz pardes-164da9fc0a7ab3c7ed39ea0a2dd6bbff3c36cdaf.zip | |
Every child starts with its signals at their defaults and none blocked
Shells, command panes, language servers, the link opener and the v9fs mount inherited the editor's signal mask (the tty's blocked SIGWINCH) and anything it ignored (a SIGHUP nohup ignored), since only handlers reset at exec. Each fork now resets every disposition and clears the mask before its exec (resetChildSignals); std's spawn for selection pipes runs with the mask cleared across it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/lsp')
| -rw-r--r-- | src/lsp/lsp_client.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lsp/lsp_client.zig b/src/lsp/lsp_client.zig index 55df1f91..91ea67d6 100644 --- a/src/lsp/lsp_client.zig +++ b/src/lsp/lsp_client.zig @@ -1148,6 +1148,7 @@ fn ensure(c: *Conn, si: usize, arena: std.mem.Allocator, req: lsp.Req, tr: *Trac // signal-safe calls, no allocation, no locks. (Same rule as tty.zig's // forkShell.) _ = setsid(); // Ctrl-C in pardes's terminal is not the server's business + @import("../host_io.zig").resetChildSignals(); _ = libc.dup2(sv[1], 0); _ = libc.dup2(sv[1], 1); const devnull = libc.open("/dev/null", .{ .ACCMODE = .WRONLY }); |
