Skip to content

Commit

Permalink
Merge branch 'marcus/revert-ssh-fix/OTP-12004' into maint
Browse files Browse the repository at this point in the history
* marcus/revert-ssh-fix/OTP-12004:
  Revert "ssh: Corrected ret val from ssh_connection:subsystem/4."
  • Loading branch information
Marcus Arendt committed Dec 5, 2014
2 parents e0414e9 + 916742c commit e2242fb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/ssh/src/ssh_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,9 @@ shell(ConnectionHandler, ChannelId) ->
%% Description: Executes a predefined subsystem.
%%--------------------------------------------------------------------
subsystem(ConnectionHandler, ChannelId, SubSystem, TimeOut) ->
case ssh_connection_handler:request(ConnectionHandler, self(),
ChannelId, "subsystem",
true, [?string(SubSystem)], TimeOut) of
success -> success;
failure -> failure;
{error,timeout} -> {error,timeout};
_ -> failure
end.

ssh_connection_handler:request(ConnectionHandler, self(),
ChannelId, "subsystem",
true, [?string(SubSystem)], TimeOut).
%%--------------------------------------------------------------------
-spec send(pid(), channel_id(), iodata()) ->
ok | {error, closed}.
Expand Down

0 comments on commit e2242fb

Please sign in to comment.