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 12-07-2007, 04:07 PM
 
Default cluster/cmirror/src clogd.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow@sourceware.org 2007-12-07 17:07:36

Modified files:
cmirror/src : clogd.c

Log message:
- Bug 384811: RHEL5 cmirror tracker: unable to unload the cmirror kernel module using the init script

daemon was not exiting... init script interpretted this as a problem and
didn't attempt to rm the module.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror/src/clogd.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r 1=1.1.2.2&r2=1.1.2.3

--- cluster/cmirror/src/Attic/clogd.c 2007/11/03 18:37:48 1.1.2.2
+++ cluster/cmirror/src/Attic/clogd.c 2007/12/07 17:07:36 1.1.2.3
@@ -123,14 +123,16 @@
r += log_status();
break;
default:
- r = 0;
- break;
+ LOG_PRINT("Unknown signal received... ignoring");
+ return;
}
+
if (!r) {
LOG_PRINT("No current cluster logs... safe to exit.");
- } else {
- LOG_ERROR("Cluster logs exist. Refusing to exit.");
+ exit(EXIT_SUCCESS);
}
+
+ LOG_ERROR("Cluster logs exist. Refusing to exit.");
}

static void process_signals(void)
 

Thread Tools




All times are GMT. The time now is 06:38 AM.

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