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 @@ def __init__(self, argv, rows=25, columns=80, scrollback=100, cell_width=10, cel
|
|||
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…
Reference in a new issue