termio: no need to close pty primary when process exits

This commit is contained in:
Mitchell Hashimoto
2023-03-18 19:30:01 -07:00
parent 00c837e0d2
commit 6b61a2449a

View File

@ -346,8 +346,8 @@ const EventData = struct {
fn processExit(
ev_: ?*EventData,
loop: *xev.Loop,
completion: *xev.Completion,
_: *xev.Loop,
_: *xev.Completion,
r: xev.Process.WaitError!u32,
) xev.CallbackAction {
const code = r catch unreachable;
@ -355,7 +355,6 @@ fn processExit(
const ev = ev_.?;
ev.process_exited = true;
ev.data_stream.close(loop, completion, EventData, ev, ttyClose);
// Notify our surface we want to close
_ = ev.surface_mailbox.push(.{