FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 01-21-2008, 09:37 PM
 
Default cluster/rgmanager/src daemons/main.c utils/clu ...

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh@sourceware.org 2008-01-21 22:37:17

Modified files:
rgmanager/src/daemons: main.c
rgmanager/src/utils: clulog.c

Log message:
Fix ccs connect error handling

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/main.c.diff?cvsroot=cluster&r1=1.47&r2=1.48
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clulog.c.diff?cvsroot=cluster&r1=1.5&r2=1.6

--- cluster/rgmanager/src/daemons/main.c 2008/01/10 09:28:41 1.47
+++ cluster/rgmanager/src/daemons/main.c 2008/01/21 22:37:17 1.48
@@ -845,10 +845,10 @@
char *v;
char internal = 0;

- if (ccsfd == -1) {
+ if (ccsfd < 0) {
internal = 1;
ccsfd = ccs_connect();
- if (ccsfd == -1)
+ if (ccsfd < 0)
return -1;
}

--- cluster/rgmanager/src/utils/clulog.c 2007/11/30 20:06:55 1.5
+++ cluster/rgmanager/src/utils/clulog.c 2008/01/21 22:37:17 1.6
@@ -53,10 +53,10 @@
char *v;
char internal = 0;

- if (ccsfd == -1) {
+ if (ccsfd < 0) {
internal = 1;
ccsfd = ccs_connect();
- if (ccsfd == -1)
+ if (ccsfd < 0)
return -1;
}
 

Thread Tools




All times are GMT. The time now is 09:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org