1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-03-30 19:46:50 +00:00

Compare commits

..

No commits in common. "ce8432ce9e66cd6372972787cfbf4508fba75a71" and "cea2309c643e5eb64ee97e27894104b1ab8b9ca7" have entirely different histories.

2 changed files with 4 additions and 9 deletions

View file

@ -176,7 +176,7 @@ def connect(sid, environ):
if child_pid:
# already started child process, don't start another
# write a new line so that when a client refresh the shell prompt is printed
os.write(fd, str.encode("\n"))
fd.write("\n")
return
# create child process attached to a pty we can read from and write to
@ -200,13 +200,8 @@ def disconnect(sid):
global child_pid
# kill pty process
try:
os.kill(child_pid, signal.SIGKILL)
os.wait()
except ProcessLookupError:
pass
except ChildProcessError:
pass
os.kill(child_pid, signal.SIGKILL)
os.wait()
# reset the variables
fd = None

View file

@ -201,7 +201,7 @@ WS_PUBLIC_PATH = "/novncd/"
WS_CERT = None
SOCKETIO_PORT = 6081
SOCKETIO_HOST = "0.0.0.0"
SOCKETIO_HOST = '0.0.0.0'
# Socketio public host
SOCKETIO_PUBLIC_HOST = None