We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e6cdd7 commit 32dae68Copy full SHA for 32dae68
pyxtermjs/app.py
@@ -86,12 +86,15 @@ def connect():
86
app.config["child_pid"] = child_pid
87
set_winsize(fd, 50, 50)
88
cmd = " ".join(shlex.quote(c) for c in app.config["cmd"])
89
+ # logging/print statements must go after this because... I have no idea why
90
+ # but if they come before the background task never starts
91
+ socketio.start_background_task(target=read_and_forward_pty_output)
92
+
93
logging.info("child pid is " + child_pid)
94
logging.info(
95
f"starting background task with command `{cmd}` to continously read "
96
"and forward pty output to client"
97
)
- socketio.start_background_task(target=read_and_forward_pty_output)
98
logging.info("task started")
99
100
0 commit comments