couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [07/35] git commit: Fix start/start_link return values
Date Fri, 01 Aug 2014 09:10:03 GMT
Fix start/start_link return values


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

Branch: refs/heads/windsor-merge
Commit: a280611ccc81431c8763e9d01e597524001ae881
Parents: 320cf0c
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Tue Apr 23 15:41:27 2013 -0500
Committer: Robert Newson <rnewson@apache.org>
Committed: Wed Jul 30 17:36:13 2014 +0100

----------------------------------------------------------------------
 src/couch_event_listener.erl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/blob/a280611c/src/couch_event_listener.erl
----------------------------------------------------------------------
diff --git a/src/couch_event_listener.erl b/src/couch_event_listener.erl
index 042500f..7c942bd 100644
--- a/src/couch_event_listener.erl
+++ b/src/couch_event_listener.erl
@@ -51,7 +51,8 @@ behaviour_info(_) ->
 
 
 start(Mod, Arg, Options) ->
-    erlang:spawn(?MODULE, do_init, [Mod, Arg, Options]).
+    Pid = erlang:spawn(?MODULE, do_init, [Mod, Arg, Options]),
+    {ok, Pid}.
 
 
 start(Name, Mod, Arg, Options) ->
@@ -64,7 +65,8 @@ start(Name, Mod, Arg, Options) ->
 
 
 start_link(Mod, Arg, Options) ->
-    erlang:spawn_link(?MODULE, do_init, [Mod, Arg, Options]).
+    Pid = erlang:spawn_link(?MODULE, do_init, [Mod, Arg, Options]),
+    {ok, Pid}.
 
 
 start_link(Name, Mod, Arg, Options) ->


Mime
View raw message