mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
Fix [Errno 32] in Linux
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user