diff options
author | olgeni <olgeni@FreeBSD.org> | 2006-06-19 20:45:43 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2006-06-19 20:45:43 +0000 |
commit | 1f4a21194b8b8314221002d3da863e98eba1c271 (patch) | |
tree | a3014fd9d4d76d8b565168fdaf1328fa5965d3fc /lang/erlang14/files | |
parent | 4931bf6e85dfa005987b5a359994e87aaadd5627 (diff) | |
download | FreeBSD-ports-1f4a21194b8b8314221002d3da863e98eba1c271.zip FreeBSD-ports-1f4a21194b8b8314221002d3da863e98eba1c271.tar.gz |
Bugfix: ssh_sftp:connect/2,3 hangs when remote the host is unknown.
Obtained from: Dmitriy Kargapolov <dmitry.kargapolov(at)corp.idt.net>
Diffstat (limited to 'lang/erlang14/files')
-rw-r--r-- | lang/erlang14/files/patch-lib_ssh_src_ssh__sftp.erl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/erlang14/files/patch-lib_ssh_src_ssh__sftp.erl b/lang/erlang14/files/patch-lib_ssh_src_ssh__sftp.erl new file mode 100644 index 0000000..2d165fe --- /dev/null +++ b/lang/erlang14/files/patch-lib_ssh_src_ssh__sftp.erl @@ -0,0 +1,16 @@ + +$FreeBSD$ + +--- lib/ssh/src/ssh_sftp.erl.orig ++++ lib/ssh/src/ssh_sftp.erl +@@ -283,8 +283,10 @@ + {stop, Error } + end; + init([Host,Port,Opts]) -> ++ SaveFlag = process_flag(trap_exit, true), + case ssh_xfer:connect(Host, Port, Opts) of + {ok, Xf, RBuf} -> ++ process_flag(trap_exit, SaveFlag), + {ok, #state { req_id = 0, xf = Xf, rep_buf=RBuf }}; + Error -> + {stop, Error} |