nickva opened a new pull request #662: Make couch_event_sup:stop/1 synchronous
URL: https://github.com/apache/couchdb/pull/662
 
 
   Because `stop/1` is asynchronous, and casts a stop message and as result the
   client process could end getting killed during termination/cleanup phase if
   this sequence of events took place:
   
   1. Client calls `stop(ListerPid).`
   
   2. couch_event_sup casts a `stop` message to couch_event_sup gen_server
   
   3. `stop` message is delayed and client continues executing.
   
   4. Client calls something like application:stop/1`.
   
   5. `application:stop/1` terminates couch_event_sup gen_server.
   
   6. App termination kills client process because it is still linked.
   
   So this make the stop synchrounous by using call instead of cast.
   
   Issue #644
   
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to