[Openais] corosync trunk - fix null dispatch handlers

Steven Dake sdake at redhat.com
Thu Apr 1 16:59:57 PDT 2010

If a dispatch handler is undefined, the C compiler automatically defines
it to NULL. This is intended behavior.  The dispatch functions check
whether the value is NULL (meaning no action should be taken from the
library point of view) and call "continue".  This doesn't trigger the
dispatch_put operation locking up the cpg dispatch operations.  Instead
"break" should be called to exit the switch and allow normal processing
of the dispatch functions.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: corosync-trunk-fix-null-dispatch-handlers.patch
Type: text/x-patch
Size: 3988 bytes
Desc: not available
Url : http://lists.linux-foundation.org/pipermail/openais/attachments/20100401/6a16a3a2/attachment.bin 

More information about the Openais mailing list