commit | f02a1013dc61f011ccb58f1fddb689a93795af98 | [log] [tgz] |
---|---|---|
author | Mike Wallace <mikewallace@apache.org> | Tue Oct 07 23:45:11 2014 +0100 |
committer | Mike Wallace <mikewallace@apache.org> | Wed Oct 29 23:12:27 2014 +0000 |
tree | d135c53b5c0884b7e62b6cdb10ab523c81ec24b9 | |
parent | 40c5c85d3bf60c73f28389394058ec1f27207335 [diff] |
Make couch_stream monitor the stream opener This commit fixes a process leak which would happen when a process opened a couch_stream and exited with reason normal before closing the stream. This patch makes the couch_stream gen_server monitor the process which opens the stream. When that monitor sends an exit signal the couch_stream gen_server is stopped and the process dies. Closes COUCHDB-2365