mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-22 11:46:11 +03:00
pty: deinit should close child end
This commit is contained in:
@ -80,6 +80,7 @@ pub fn open(size: winsize) !Pty {
|
|||||||
|
|
||||||
pub fn deinit(self: *Pty) void {
|
pub fn deinit(self: *Pty) void {
|
||||||
_ = std.os.system.close(self.master);
|
_ = std.os.system.close(self.master);
|
||||||
|
_ = std.os.system.close(self.slave);
|
||||||
self.* = undefined;
|
self.* = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,9 +185,6 @@ pub fn threadExit(self: *Exec, data: ThreadData) void {
|
|||||||
if (data.ev.process_exited) self.subprocess.externalExit();
|
if (data.ev.process_exited) self.subprocess.externalExit();
|
||||||
self.subprocess.stop();
|
self.subprocess.stop();
|
||||||
|
|
||||||
// Wait for our subprocess to report it exited.
|
|
||||||
// data.ev.loop.run(.once);
|
|
||||||
|
|
||||||
// Wait for our reader thread to end
|
// Wait for our reader thread to end
|
||||||
data.read_thread.join();
|
data.read_thread.join();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user