Red Hat Bugzilla – Bug 607744
remove delay on normal shutdown of corosync server and return error to library user
Last modified: 2016-04-26 11:38:21 EDT
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):
Steps to Reproduce:
1. test case attached
2. run service corosync restart in a loop
two second delay if corosync is shutdown normally
no delay if corosync is shutdown
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:
Created attachment 443547 [details]
Proposed solution implemented in practice.
Patch committed to SVN as revision 3059. Closing as upstream.