This commit is contained in:
edschuy95 2026-01-22 21:04:02 -05:00
parent 03e656bd4b
commit ac050d6627

View file

@ -646,10 +646,11 @@ def game_launch(gameargs):
master_fd = None
# Start monitoring in background thread
monitor_thread = threading.Thread(target=monitor_game, args=(pty_proc,))
monitor_thread = threading.Thread(target=monitor_game, args=(pty_proc,), daemon=False)
monitor_thread.start()
else:
os.environ['TERM'] = 'xterm'
master_fd, slave_fd = pty.openpty()
pty_proc = subprocess.Popen(
@ -663,7 +664,7 @@ def game_launch(gameargs):
os.close(slave_fd)
# Start monitoring in background thread
monitor_thread = threading.Thread(target=monitor_game_pty, args=(master_fd,))
monitor_thread = threading.Thread(target=monitor_game_pty, args=(master_fd,), daemon=False)
monitor_thread.start()
# Monitor the game output