Skip to content

Commit fab8b21

Browse files
authored
asyncio.create_subprocess_shell() -> asyncio.create_subprocess_exec() (#16944)
1 parent 35e9149 commit fab8b21

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

chia/timelord/timelord_launcher.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,11 @@ async def spawn_process(
8888
dirname = path_to_vdf_client.parent
8989
basename = path_to_vdf_client.name
9090
resolved = await resolve(host, prefer_ipv6=prefer_ipv6)
91-
proc = await asyncio.create_subprocess_shell(
92-
f"{basename} {resolved} {port} {counter}",
91+
proc = await asyncio.create_subprocess_exec(
92+
os.fspath(basename),
93+
str(resolved),
94+
str(port),
95+
str(counter),
9396
stdout=asyncio.subprocess.PIPE,
9497
stderr=asyncio.subprocess.PIPE,
9598
env={"PATH": os.fspath(dirname)},

0 commit comments

Comments
 (0)