mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 23:55:24 +00:00
Ignore if pty process has exited
This commit is contained in:
parent
3ef0fe19f8
commit
84e22e4a8c
1 changed files with 7 additions and 2 deletions
|
@ -200,8 +200,13 @@ def disconnect(sid):
|
||||||
global child_pid
|
global child_pid
|
||||||
|
|
||||||
# kill pty process
|
# kill pty process
|
||||||
|
try:
|
||||||
os.kill(child_pid, signal.SIGKILL)
|
os.kill(child_pid, signal.SIGKILL)
|
||||||
os.wait()
|
os.wait()
|
||||||
|
except ProcessLookupError:
|
||||||
|
pass
|
||||||
|
except ChildProcessError:
|
||||||
|
pass
|
||||||
|
|
||||||
# reset the variables
|
# reset the variables
|
||||||
fd = None
|
fd = None
|
||||||
|
|
Loading…
Reference in a new issue