From mboxrd@z Thu Jan 1 00:00:00 1970 From: lhh@sourceware.org Date: 29 Jan 2007 19:41:26 -0000 Subject: [Cluster-devel] cluster/rgmanager/src/utils clustat.c Message-ID: <20070129194126.9864.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL5 Changes by: lhh at sourceware.org 2007-01-29 19:41:25 Modified files: rgmanager/src/utils: clustat.c Log message: Add error reporting if msg_open fails; patch from Josef Whiter Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clustat.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.25.2.3&r2=1.25.2.4 --- cluster/rgmanager/src/utils/clustat.c 2007/01/26 20:41:41 1.25.2.3 +++ cluster/rgmanager/src/utils/clustat.c 2007/01/29 19:41:25 1.25.2.4 @@ -54,8 +54,10 @@ struct timeval tv; - if (msg_open(MSG_SOCKET, 0, 0, &ctx, 10) < 0) + if (msg_open(MSG_SOCKET, 0, 0, &ctx, 10) < 0) { + perror("msg_open"); return; + } msg_send_simple(&ctx, RG_STATUS_NODE, 0, 0); @@ -145,6 +147,7 @@ struct timeval tv; if (msg_open(MSG_SOCKET, 0, 0, &ctx, 10) < 0) { + perror("msg_open"); return NULL; }