diff options
Diffstat (limited to 'lang/erlang/files/patch-lib_ssh_src_ssh__sftp.erl')
-rw-r--r-- | lang/erlang/files/patch-lib_ssh_src_ssh__sftp.erl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/erlang/files/patch-lib_ssh_src_ssh__sftp.erl b/lang/erlang/files/patch-lib_ssh_src_ssh__sftp.erl new file mode 100644 index 0000000..2d165fe --- /dev/null +++ b/lang/erlang/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} |