From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mikhail A Zelikov Date: Thu, 24 Aug 2006 11:49:58 -0400 (EDT) Subject: [Cluster-devel] CMAN cluster event notification broken? Message-ID: <25090.128.221.197.129.1156434598.squirrel@webmail.cs.uml.edu> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have a 2-node cluster, and I wrote a simple program that registers for cluster events using: cman_start_notification and cman_start_recv_data. If a node dies (manual reboot/shutdown) then I receive CMAN_REASON_PORTCLOSED event and then NO CMAN_REASON_STATECHANGE (as I woudl expect). I receive CMAN_REASON_STATECHANGE once the node is booted again. If I do not register for data then I do not receive CMAN_REASON_PORTCLOSED as expected. Is the notification mechanism broken? Mike P.S. It also looks like that the conditions in while loop in cman_dispatch might be incorrect if the intention was to continue forever as long as there no errors. while ( flags & CMAN_DISPATCH_ALL && (len < 0 && errno == EAGAIN) ); Should it be: while ( flags & CMAN_DISPATCH_ALL && !(len < 0 && errno == EAGAIN) );