Author: adrian.chadd
Date: Wed Apr 1 15:34:06 2009
New Revision: 13896
Modified:
branches/LUSCA_HEAD/src/cf.data.pre
branches/LUSCA_HEAD/src/icmp.c
Log:
Allow "none" to be used as the pinger program so the pinger can be
disabled at runtime.
Modified: branches/LUSCA_HEAD/src/cf.data.pre
==============================================================================
--- branches/LUSCA_HEAD/src/cf.data.pre (original)
+++ branches/LUSCA_HEAD/src/cf.data.pre Wed Apr 1 15:34:06 2009
@@ -2714,6 +2714,7 @@
IFDEF: USE_ICMP
DOC_START
Specify the location of the executable for the pinger process.
+ Specify "none" to disable the pinger.
DOC_END
COMMENT_START
Modified: branches/LUSCA_HEAD/src/icmp.c
==============================================================================
--- branches/LUSCA_HEAD/src/icmp.c (original)
+++ branches/LUSCA_HEAD/src/icmp.c Wed Apr 1 15:34:06 2009
@@ -190,6 +190,10 @@
const char *args[2];
int rfd;
int wfd;
+ if (strcmp("none", Config.Program.pinger) == 0) {
+ debug(37, 1) ("Pinger not started - disabled in configuration file.\n");
+ return;
+ }
args[0] = "(pinger)";
args[1] = NULL;
pid = ipcCreate(IPC_DGRAM,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---