[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cfengine-develop] Patch: opt_zone_info defined during -z runs
From: |
Chip Seraphine |
Subject: |
[Cfengine-develop] Patch: opt_zone_info defined during -z runs |
Date: |
Tue, 24 Aug 2004 11:55:48 -0500 |
User-agent: |
KMail/1.5.4 |
[Should unsolicited, non-bugfix patches be sent to this list instead of -help?
This seems more appropriate, but -help could generate more comments.]
When cfexecd runs cfagent with a "-z" flag to get scheduling information, I
would like to minimize the amount of code that executes (largely in the
interest of not consuming more CPU than absolutely needed). I propose the
following simple patch in order to accomplish this:
--- cfagent.c.orig 2004-08-24 11:47:23.084732000 -0500
+++ cfagent.c 2004-08-24 11:47:29.634963000 -0500
@@ -1631,6 +1631,7 @@
case 'z': PRMAILSERVER = true;
IGNORELOCK = true;
PARSEONLY = true;
+ AddClassToHeap("opt_zone_info");
break;
case 'Z': strncpy(METHODMD5,optarg,CF_BUFSIZE-1);
All it does is set a classed called "opt_zone_info" which can be used in the
script logic to avoid running any unneeded tasks.
--
Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Cfengine-develop] Patch: opt_zone_info defined during -z runs,
Chip Seraphine <=