Description of problem: if corosync service is shutdown, client libraries wait 2 seconds before returning an error. A different approach to this problem would be to set a variable in the control_buffer global area indicating the server has exited and sem_post on the all the semaphores in the system during conn_info_destroy. Check the value of the exited flag before and after sem_wait. If the exited flag is true, return ERR_LIBRARY Version-Release number of selected component (if applicable): corosync-1.2.5 How reproducible: 100% Steps to Reproduce: 1. test case attached 2. run service corosync restart in a loop 3. Actual results: two second delay if corosync is shutdown normally Expected results: no delay if corosync is shutdown Additional info:
Created attachment 426658 [details] test app which reproduces delay
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle. Changing version to '14'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Created attachment 443547 [details] Proposed patch Proposed solution implemented in practice.
Patch committed to SVN as revision 3059. Closing as upstream.