[Openais] [PATCH] notifyd: dispatch only one message at a time.

Angus Salkeld asalkeld at redhat.com
Sun Mar 20 19:37:18 PDT 2011


This is avoid getting stuck in the dispatch processing
messages when the user is trying to shutdown the service.

Signed-off-by: Angus Salkeld <asalkeld at redhat.com>
---
 tools/corosync-notifyd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/corosync-notifyd.c b/tools/corosync-notifyd.c
index 9f84cd2..7af573c 100644
--- a/tools/corosync-notifyd.c
+++ b/tools/corosync-notifyd.c
@@ -365,7 +365,7 @@ static int
 _cs_confdb_dispatch(hdb_handle_t handle,
 	int fd,	int revents, void *data)
 {
-	confdb_dispatch(confdb_handle, CONFDB_DISPATCH_ALL);
+	confdb_dispatch(confdb_handle, CS_DISPATCH_ONE);
 	return 0;
 }
 
@@ -384,7 +384,7 @@ static int
 _cs_quorum_dispatch(hdb_handle_t handle,
 	int fd,	int revents, void *data)
 {
-	quorum_dispatch(quorum_handle, CS_DISPATCH_ALL);
+	quorum_dispatch(quorum_handle, CS_DISPATCH_ONE);
 	return 0;
 }
 
-- 
1.7.4



More information about the Openais mailing list