Permalink
Browse files

add gproc:link/1

  • Loading branch information...
1 parent 32c6dd9 commit d581d90ead58ae26d3b6f74468af470fd41c6158 @gleber committed Nov 20, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +3 −1 src/gcproc.erl
View
@@ -4,7 +4,7 @@ all: $(REBAR)
$(REBAR) get-deps compile
tests: $(REBAR)
- $(REBAR) eunit skip_deps=true suite=dstree
+ $(REBAR) eunit skip_deps=true
sh: all
erl -smp enable -pa ebin/ -pa deps/*/ebin/ -pa .eunit/ -eval 'shell_default:m(gcproc)'
View
@@ -4,7 +4,7 @@
-export([spawn/1,
- send/2, pid/1]).
+ send/2, link/1, pid/1]).
-record(gcproc, {pid, res}).
@@ -19,6 +19,8 @@ send(Msg, #gcproc{pid = Pid}) ->
pid(#gcproc{pid = Pid}) ->
Pid.
+link(#gcproc{pid = Pid}) ->
+ erlang:link(Pid).
simple_test() ->
ok = application:start(gcproc),

0 comments on commit d581d90

Please sign in to comment.