We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4757eea commit 3ec7feeCopy full SHA for 3ec7fee
docker/transport/sshconn.py
@@ -42,12 +42,17 @@ def connect(self, **kwargs):
42
port,
43
'docker system dial-stdio'
44
]
45
+
46
+ preexec_func = None
47
+ if not constants.IS_WINDOWS_PLATFORM:
48
+ preexec_func = lambda: signal.signal(signal.SIGINT, signal.SIG_IGN)
49
50
self.proc = subprocess.Popen(
51
' '.join(args),
52
shell=True,
53
stdout=subprocess.PIPE,
54
stdin=subprocess.PIPE,
- preexec_fn=lambda: signal.signal(signal.SIGINT, signal.SIG_IGN))
55
+ preexec_fn=preexec_func)
56
57
def _write(self, data):
58
if not self.proc or self.proc.stdin.closed:
0 commit comments