Skip to content

Commit e3b97f1

Browse files
committed
Redirect qvm-run stdin to the open fd /dev/null
1 parent a827d7f commit e3b97f1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

qubes/tests/integ/dispvm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,13 @@ async def wait_preload(
280280

281281
async def run_preload_proc(self):
282282
logger.info("start")
283+
# TODO: ben: to marek: DEVNULL may work because differently than None,
284+
# it is not a closed fd.
283285
proc = await asyncio.create_subprocess_exec(
284286
*self.preload_cmd,
285287
stdout=asyncio.subprocess.PIPE,
288+
#stdin=asyncio.subprocess.PIPE,
289+
stdin=asyncio.subprocess.DEVNULL,
286290
)
287291
try:
288292
stdout, _ = await asyncio.wait_for(proc.communicate(), timeout=60)

0 commit comments

Comments
 (0)