mirror of
https://github.com/romanz/amodem.git
synced 2026-03-23 19:01:00 +08:00
ssh: close stdin when running subshell
This commit is contained in:
@@ -210,6 +210,7 @@ def main(device_type):
|
||||
use_shell = bool(args.shell)
|
||||
if use_shell:
|
||||
command = os.environ['SHELL']
|
||||
sys.stdin.close()
|
||||
|
||||
conn = JustInTimeConnection(
|
||||
conn_factory=lambda: client.Client(device_type()),
|
||||
|
||||
Reference in New Issue
Block a user