diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2005-03-19 11:24:22 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2005-03-19 11:24:22 +0000 |
commit | 4d84591086d5abf7cd0040a2eae08c8093ff02c0 (patch) | |
tree | 8c5635929ce423f29f203915f50a891290ac6b60 /lang/erlang14 | |
parent | 53ec2f703ee3910c3ac8193d9746d17a85fa96f0 (diff) | |
download | ports-4d84591086d5abf7cd0040a2eae08c8093ff02c0.tar.gz ports-4d84591086d5abf7cd0040a2eae08c8093ff02c0.zip |
Notes
Diffstat (limited to 'lang/erlang14')
-rw-r--r-- | lang/erlang14/Makefile | 1 | ||||
-rw-r--r-- | lang/erlang14/files/patch-lib_kernel_src_rpc.erl | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile index 68f4eea11beb..1c0445cfc89d 100644 --- a/lang/erlang14/Makefile +++ b/lang/erlang14/Makefile @@ -7,6 +7,7 @@ PORTNAME= erlang PORTVERSION= r10b3 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= lang parallel MASTER_SITES= http://www.erlang.org/download/ \ diff --git a/lang/erlang14/files/patch-lib_kernel_src_rpc.erl b/lang/erlang14/files/patch-lib_kernel_src_rpc.erl new file mode 100644 index 000000000000..7a94e2a96574 --- /dev/null +++ b/lang/erlang14/files/patch-lib_kernel_src_rpc.erl @@ -0,0 +1,28 @@ + +$FreeBSD$ + +--- lib/kernel/src/rpc.erl.orig ++++ lib/kernel/src/rpc.erl +@@ -495,16 +495,16 @@ + ReplyTo ! {self(), {promise_reply, R}} %% self() is key + end). + +-yield(Key) when pid(Key) -> +- {value, R} = do_yield(Key, infinite), ++yield(Key) when is_pid(Key) -> ++ {value,R} = do_yield(Key, infinity), + R. + +-nb_yield(Key, infinite) when pid(Key) -> +- do_yield(Key, infinite); +-nb_yield(Key, Timeout) when pid(Key), integer(Timeout), Timeout >= 0 -> ++nb_yield(Key, infinity=Inf) when is_pid(Key) -> ++ do_yield(Key, Inf); ++nb_yield(Key, Timeout) when is_pid(Key), is_integer(Timeout), Timeout >= 0 -> + do_yield(Key, Timeout). + +-nb_yield(Key) when pid(Key) -> ++nb_yield(Key) when is_pid(Key) -> + do_yield(Key, 0). + + do_yield(Key, Timeout) -> |