You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2016/08/23 22:04:24 UTC

[3/6] config commit: updated refs/heads/master to 47e5f70

Return `{ok, Pid}` from config_listener_mon:subscribe/2


Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/f09a2eb7
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/f09a2eb7
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/f09a2eb7

Branch: refs/heads/master
Commit: f09a2eb7db7b4e509d236f1e75c0d9c6e761d80b
Parents: 01c34c0
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Fri Aug 19 12:33:17 2016 -0700
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Fri Aug 19 12:56:35 2016 -0700

----------------------------------------------------------------------
 src/config_listener_mon.erl | 2 +-
 test/config_tests.erl       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/f09a2eb7/src/config_listener_mon.erl
----------------------------------------------------------------------
diff --git a/src/config_listener_mon.erl b/src/config_listener_mon.erl
index 70c2707..036d17f 100644
--- a/src/config_listener_mon.erl
+++ b/src/config_listener_mon.erl
@@ -44,7 +44,7 @@ init({Pid, Mod, InitSt}) ->
     Ref = erlang:monitor(process, Pid),
     case config_listener:start(Mod, {Mod, Pid}, {Pid, InitSt}) of
         ok ->
-            proc_lib:init_ack(ok),
+            proc_lib:init_ack({ok, self()}),
             gen_server:enter_loop(?MODULE, [], #st{pid = Pid, ref = Ref});
         Else ->
             proc_lib:init_ack(Else)

http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/f09a2eb7/test/config_tests.erl
----------------------------------------------------------------------
diff --git a/test/config_tests.erl b/test/config_tests.erl
index c4a965b..854e20e 100644
--- a/test/config_tests.erl
+++ b/test/config_tests.erl
@@ -589,7 +589,7 @@ should_unsubscribe_when_subscriber_gone(_Subscription, Pid) ->
 spawn_config_listener() ->
     Self = self(),
     Pid = erlang:spawn(fun() ->
-        ok = config:listen_for_changes(?MODULE, {self(), undefined}),
+        {ok, _} = config:listen_for_changes(?MODULE, {self(), undefined}),
         Self ! registered,
         loop(undefined)
     end),