Fix [Errno 32] in Linux

This commit is contained in:
Deniz Şafak
2025-05-10 00:44:26 +03:00
parent 85481ad119
commit 7fff2f154c
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -134,6 +134,7 @@ def create_process(cmd, stdin=None, text=True):
# Configure for binary I/O
kwargs["text"] = False
# For binary mode, 'encoding' and 'errors' arguments must not be passed to Popen
kwargs["bufsize"] = 0 # Use unbuffered mode for binary data
if stdin is not None:
kwargs["stdin"] = stdin