aws-ssh-utils 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/PKG-INFO +1 -1
- aws_ssh_utils-0.3.2/aws_ssh_utils/__init__.py +1 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/session.py +9 -0
- aws_ssh_utils-0.3.1/aws_ssh_utils/__init__.py +0 -1
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/.gitignore +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/LICENSE +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/README.md +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/cli_utils.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/commands/__init__.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/commands/app.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/commands/ec2.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/commands/emr.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/commands/emr_all.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/commands/healthcheck.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/connection.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/ec2_utils.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/emr_utils.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/logging_utils.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/py.typed +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/ssh.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/aws_ssh_utils/terminal.py +0 -0
- {aws_ssh_utils-0.3.1 → aws_ssh_utils-0.3.2}/pyproject.toml +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.2"
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
import os
|
|
4
4
|
import queue
|
|
5
5
|
import re
|
|
6
|
+
import signal
|
|
6
7
|
import threading
|
|
7
8
|
import time
|
|
9
|
+
from contextlib import suppress
|
|
8
10
|
from typing import Protocol, cast
|
|
9
11
|
|
|
10
12
|
|
|
@@ -19,6 +21,8 @@ class ShellClient(Protocol):
|
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
class Pty(Protocol):
|
|
24
|
+
pid: int
|
|
25
|
+
|
|
22
26
|
def read(self, size: int) -> str: ...
|
|
23
27
|
def write(self, data: str) -> int: ...
|
|
24
28
|
def setwinsize(self, rows: int, cols: int) -> None: ...
|
|
@@ -123,6 +127,11 @@ class SSMSession:
|
|
|
123
127
|
if not self.closed:
|
|
124
128
|
self.closed = True
|
|
125
129
|
try:
|
|
130
|
+
if os.name != 'nt':
|
|
131
|
+
# The reader thread holds the pty lock until every process on it exits,
|
|
132
|
+
# including session-manager-plugin, which survives the SIGHUP sent to aws.
|
|
133
|
+
with suppress(ProcessLookupError):
|
|
134
|
+
os.killpg(self.process.pid, signal.SIGKILL)
|
|
126
135
|
self.process.close(force=True)
|
|
127
136
|
finally:
|
|
128
137
|
self._output.put(None)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|