You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2017/10/09 19:26:26 UTC

[couchdb] branch 749-fix-couch_peruser-app-structure updated: unlink changes listeners before exiting them so we survive

This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch 749-fix-couch_peruser-app-structure
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/749-fix-couch_peruser-app-structure by this push:
     new 564b901  unlink changes listeners before exiting them so we survive
564b901 is described below

commit 564b901b7e891b45492c25c18dbb2019be9189d3
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Mon Oct 9 21:26:19 2017 +0200

    unlink changes listeners before exiting them so we survive
---
 src/couch_peruser/src/couch_peruser.erl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/couch_peruser/src/couch_peruser.erl b/src/couch_peruser/src/couch_peruser.erl
index c5110da..2493387 100644
--- a/src/couch_peruser/src/couch_peruser.erl
+++ b/src/couch_peruser/src/couch_peruser.erl
@@ -283,6 +283,7 @@ user_db_name(User) ->
 exit_changes(State) ->
     lists:foreach(fun (ChangesState) ->
         demonitor(State#changes_state.changes_ref, [flush]),
+        unlink(ChangesState#changes_state.changes_pid),
         exit(ChangesState#changes_state.changes_pid, kill)
     end, State#state.states).
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].