From f2e90df506380b5ca5c0533e74a174e8b10f8cd8 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 12 Apr 2021 10:57:44 +0200 Subject: [PATCH] Revert "M #-: Fix stdin processing in SshStreamCommand (#1043)" This reverts commit 584f12a51770d30cd0f76350f276743905de46b8. --- src/mad/ruby/ssh_stream.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mad/ruby/ssh_stream.rb b/src/mad/ruby/ssh_stream.rb index 5d72b65eaa..3c5c90819c 100644 --- a/src/mad/ruby/ssh_stream.rb +++ b/src/mad/ruby/ssh_stream.rb @@ -221,11 +221,7 @@ class SshStreamCommand < RemotesCommand end @stream.exec(command) - - if stdin - @stream.stdin.write(stdin) - @stream.stdin.close - end + @stream.stdin.write(stdin) if stdin @code = @stream.wait_for_command(@timeout)