[icinga-checkins] icinga.org: icinga-core/rbartels/cgis: add eventhandler override ( Sven Nierlein)

git at icinga.org git at icinga.org
Sat Sep 4 12:32:53 CEST 2010

Module: icinga-core
Branch: rbartels/cgis
Commit: 115412fd3b24e58d2aa38fc3046e725ffe21d96b
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=115412fd3b24e58d2aa38fc3046e725ffe21d96b

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Aug 27 12:20:41 2010 +0200

add eventhandler override (Sven Nierlein)

"Currently eventhandlers are executed in the main thread
[...] and block the core until the eventhandler is finished.
Attached is a patch, which makes it possible for eventhandling
neb modules to cancel/override the execution of eventhandlers.
This is currently only possible with service and host checks.
This patch would allow neb modules to stack eventhandlers on
external queues or even distribute execution of eventhandler.
This patch should not break the behavior of current neb modules,
because their return value is currently ignored and execution
of eventhandler will only be canceled on returning

refs #731


 Changelog         |   10 +++++
 base/broker.c     |    7 ++--
 base/sehandlers.c |   99 ++++++++++++++++++++++++++++++++++++++---------------
 include/broker.h  |    2 +-
 4 files changed, 86 insertions(+), 32 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=115412fd3b24e58d2aa38fc3046e725ffe21d96b

More information about the icinga-checkins mailing list