summaryrefslogtreecommitdiff
path: root/src/tty
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty')
-rw-r--r--src/tty/tty.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tty/tty.zig b/src/tty/tty.zig
index eabbbe22..8d121b1f 100644
--- a/src/tty/tty.zig
+++ b/src/tty/tty.zig
@@ -1150,6 +1150,8 @@ const Killed = struct {
_ = std.c.write(fd, reset, reset.len);
_ = std.c.tcsetattr(fd, .FLUSH, &cooked);
}
+ // The 9P socket goes too: a killed editor leaves none behind.
+ ninep_io.unlinkOwnSocket();
// SA_RESETHAND put the default back: the same signal, now fatal.
_ = std.c.raise(sig);
}