mirror of https://github.com/n1nj4sec/pupy.git
Kill process on disconnect (ptyshell)
This commit is contained in:
parent
d7fad5feb3
commit
89e06c1c45
|
@ -199,7 +199,10 @@ class PtyShell(object):
|
|||
|
||||
if not_eof:
|
||||
not_eof = self.prog.poll() is None
|
||||
else:
|
||||
break
|
||||
|
||||
self.close()
|
||||
close_cb()
|
||||
|
||||
def start_read_loop(self, print_callback, close_callback):
|
||||
|
|
Loading…
Reference in New Issue