.
This commit is contained in:
parent
03e656bd4b
commit
ac050d6627
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue