Explorar o código

notifyd: dispatch only one message at a time.

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@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Angus Salkeld %!s(int64=15) %!d(string=hai) anos
pai
achega
fbae3de885
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tools/corosync-notifyd.c

+ 2 - 2
tools/corosync-notifyd.c

@@ -364,7 +364,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;
 }
 
@@ -383,7 +383,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;
 }