cluster/cmirror/src clogd.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: jbrassow at 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.
cmirror/src/Attic/clogd.c +6 -4
@@ -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 )