[Nagios-devel] Heads up for lib/worker.c revamp

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Heads up for lib/worker.c revamp

Post by Guest »

I know it's fairly late in the dev cycle, but the current status of
lib/worker.c simply isn't maintainable enough. Among the several
problems with it are:
* spawn_worker() makes assumptions on how the worker manager wants to
store the jobs it has sent to the worker.
* More types than necessary are made public, which makes patching and
minor feature addition close to impossible.
* There is no common prefix used for functions and types, making it
hard to remember which functions are public and which are private.
* It's hard to test since it ties in pretty hard with the Nagios code.

I'll be doing quite an extensive rewrite over the next few days in order
to address these issues. This means base/workers.c will also sustain
heavy surgery. If you're writing or have written modules or
special-purpose workers that rely on any of the code about to be
chainsaw-operated on, please let me know asap, and I'll do what I can to
make sure your stuff keeps working.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked