mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
proper ordering during shutdown
This commit is contained in:
parent
fa397a1d24
commit
0a297f4656
1 changed files with 2 additions and 1 deletions
|
|
@ -188,8 +188,9 @@ class PTY:
|
|||
def __del__(self):
|
||||
if not self.is_child:
|
||||
self.queue.put(None)
|
||||
os.close(self.master_fd)
|
||||
fd = self.master_fd
|
||||
del self.master_fd
|
||||
os.close(fd)
|
||||
|
||||
def write_loop(self):
|
||||
while True:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue