aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/erlang/Makefile1
-rw-r--r--lang/erlang/files/patch-lib_ssh_src_ssh__sftp.erl16
-rw-r--r--lang/erlang14/Makefile1
-rw-r--r--lang/erlang14/files/patch-lib_ssh_src_ssh__sftp.erl16
4 files changed, 34 insertions, 0 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 163892524ebe..6dd5d54169e1 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -7,6 +7,7 @@
PORTNAME= erlang
PORTVERSION= r11b0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang parallel
MASTER_SITES= http://www.erlang.org/download/ \
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 000000000000..2d165fe159af
--- /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}
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile
index 163892524ebe..6dd5d54169e1 100644
--- a/lang/erlang14/Makefile
+++ b/lang/erlang14/Makefile
@@ -7,6 +7,7 @@
PORTNAME= erlang
PORTVERSION= r11b0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang parallel
MASTER_SITES= http://www.erlang.org/download/ \
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 000000000000..2d165fe159af
--- /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}