mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 15:13:33 +00:00
Ignore if pty process has exited
This commit is contained in:
@@ -200,8 +200,13 @@ def disconnect(sid):
|
|||||||
global child_pid
|
global child_pid
|
||||||
|
|
||||||
# kill pty process
|
# kill pty process
|
||||||
os.kill(child_pid, signal.SIGKILL)
|
try:
|
||||||
os.wait()
|
os.kill(child_pid, signal.SIGKILL)
|
||||||
|
os.wait()
|
||||||
|
except ProcessLookupError:
|
||||||
|
pass
|
||||||
|
except ChildProcessError:
|
||||||
|
pass
|
||||||
|
|
||||||
# reset the variables
|
# reset the variables
|
||||||
fd = None
|
fd = None
|
||||||
|
|||||||
Reference in New Issue
Block a user