From 6b61a2449a0c71a00e3d3686350e34cf187fdb4e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 18 Mar 2023 19:30:01 -0700 Subject: [PATCH] termio: no need to close pty primary when process exits --- src/termio/Exec.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 9078d77de..37150a5cf 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -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(.{