Skip to content

Commit

Permalink
Fixed WinError 10038
Browse files Browse the repository at this point in the history
  • Loading branch information
johanna-II authored Jun 24, 2024
1 parent b31f6d4 commit b9afa84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion awscliv2/interactive_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import subprocess
import sys
import threading
import socket
import platform
from subprocess import Popen
from typing import Sequence, TextIO

Expand Down Expand Up @@ -64,7 +66,11 @@ def readall(self, process: Popen, stdin: TextIO) -> None: # type: ignore
if self.finished:
break

rlist = select.select([stdin], [], [], self.read_timeout)[0]
if platform.system() == "Windows":
rlist = select.select([socket.socket()], [], [], self.read_timeout)[0]
else:
rlist = select.select([stdin], [], [], self.read_timeout)[0]

if not rlist:
continue

Expand Down

0 comments on commit b9afa84

Please sign in to comment.