diff --git a/tools/distgraphlaunch.py b/tools/distgraphlaunch.py index 856cf10c3df4..6c5866f2e94f 100644 --- a/tools/distgraphlaunch.py +++ b/tools/distgraphlaunch.py @@ -129,7 +129,7 @@ def run(ssh_cmd): subprocess.check_call(ssh_cmd, shell=True) thread = Thread(target=run, args=(ssh_cmd,)) - thread.setDaemon(True) + thread.daemon = True thread.start() return thread diff --git a/tools/launch.py b/tools/launch.py index 53d314111621..bf04df51b66f 100644 --- a/tools/launch.py +++ b/tools/launch.py @@ -145,7 +145,7 @@ def run(ssh_cmd, state_q): state_q, ), ) - thread.setDaemon(True) + thread.daemon = True thread.start() # sleep for a while in case of ssh is rejected by peer due to busy connection time.sleep(0.2)