From 065426b16144c1377b3af1c49f0ca9ba419ced78 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 14 Jul 2026 07:51:47 -0400 Subject: [PATCH] Remove derelict devnull open This was leftover from pre-async days to support old subprocess mechanism. --- confluent_server/confluent/osimage.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index cf18b36d..17d53c3a 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -1262,11 +1262,10 @@ class MediaImporter(object): async def importmedia(self): if self.medfile: os.environ['CONFLUENT_MEDIAFD'] = '{0}'.format(self.medfile.fileno()) - with open(os.devnull, 'w'): - self.worker = await asyncio.create_subprocess_exec( - sys.executable, __file__, self.filename, '-b', - self.targpath, self.distpath, self.customname, - stdout=asyncio.subprocess.PIPE, close_fds=False) + self.worker = await asyncio.create_subprocess_exec( + sys.executable, __file__, self.filename, '-b', + self.targpath, self.distpath, self.customname, + stdout=asyncio.subprocess.PIPE, close_fds=False) wkr = self.worker currline = b'' while wkr.returncode is None: