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