Ticket 618 - Crash at shutdown while stopping replica agreements
Bug Description:
During shutdown, the replica agreement thread can be long to detect the shutdown.
If replica agreements fails to detect shutdown before timeout (default is 120s),
the shutdown continue and deletes replica agreement structure.
Fix Description:
The fix consist to make the main thread wait for the RA thread.
https://fedorahosted.org/389/ticket/618
Reviewed by: Rich Megginson (thanks for the review Rich)
Platforms tested: fedora 18
Flag Day: no
Doc impact: no