Force bufsize=0 on subprocess
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 26 Feb 2026 09:43:04 +0000 (10:43 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 26 Feb 2026 09:43:04 +0000 (10:43 +0100)
Which should already be the default, but just in case

music_assistant/helpers/process.py

index 75cc310ca850c98918d75fb195799243ddface51..c33c11adaf0abc6dc5d891429a8d85fcf603b761 100644 (file)
@@ -122,6 +122,7 @@ class AsyncProcess:
             stdout=asyncio.subprocess.PIPE if self._stdout is True else self._stdout,
             stderr=asyncio.subprocess.PIPE if self._stderr is True else self._stderr,
             env=self._env,
+            bufsize=0,
         )
         self.logger.log(
             VERBOSE_LOG_LEVEL, "Process %s started with PID %s", self.name, self.proc.pid