Replicator DB: fix a rare gen_server death case. Happened when the rep_db_created message is received before the changes loop dies. Also simplified a bit the handling of subprocesses exits.
Replicator DB: fix a rare gen_server death case. Happened when the rep_db_created message is received before the changes loop dies.
Also simplified a bit the handling of subprocesses exits.



git-svn-id: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@1038660 13f79535-47bb-0310-9956-ffa450edef68

fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb