aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-10-30 15:43:52 +0100
committerIngela Anderton Andin <[email protected]>2014-10-30 15:43:52 +0100
commit439e4b037bf7ea423cb6715bdd25dd39c31eeb7f (patch)
tree700aeab17ac8dce458fc93de61a829e8ea9c37c2 /lib/ssh/src/ssh.erl
parent4e969748e47566c974ce526ade50c34ab62e3b26 (diff)
parent1629794d4e120d94e360bb2d58485d8d8e1688ed (diff)
downloadotp-439e4b037bf7ea423cb6715bdd25dd39c31eeb7f.tar.gz
otp-439e4b037bf7ea423cb6715bdd25dd39c31eeb7f.tar.bz2
otp-439e4b037bf7ea423cb6715bdd25dd39c31eeb7f.zip
Merge branch 'ia/ssh/pty-request/OTP-11542' into maint
* ia/ssh/pty-request/OTP-11542: ssh: Add basic ptty_alloc tests ssh: Add pty_alloc request to ssh:shell/[1,2,3] ssh: Add ptty_alloc/[2,3]
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r--lib/ssh/src/ssh.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl
index de047d3c83..eae33e3683 100644
--- a/lib/ssh/src/ssh.erl
+++ b/lib/ssh/src/ssh.erl
@@ -194,6 +194,7 @@ shell(Host, Port, Options) ->
{ok, ConnectionRef} ->
case ssh_connection:session_channel(ConnectionRef, infinity) of
{ok,ChannelId} ->
+ success = ssh_connection:ptty_alloc(ConnectionRef, ChannelId, []),
Args = [{channel_cb, ssh_shell},
{init_args,[ConnectionRef, ChannelId]},
{cm, ConnectionRef}, {channel_id, ChannelId}],