[Nagiosplug-devel] [ nagiosplug-Bugs-2902089 ] Move nagios_die out of N::P::Thresholds
SourceForge.net
noreply at sourceforge.net
Sun Nov 22 17:29:08 CET 2009
Bugs item #2902089, was opened at 2009-11-22 11:18
Message generated for change (Comment added) made by dermoth
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2902089&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface (example)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: DaTa (datamuc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Move nagios_die out of N::P::Thresholds
Initial Comment:
N::P::Thresholds uses nagios_die. This is suboptimal for using
that Class in other Projects. Though one can set
N::P::F::_use_die, but then $@ contains get_shortname and a
STATUS_TEXT, which feels odd.
----------------------------------------------------------------------
>Comment By: Thomas Guyot-Sionnest (dermoth)
Date: 2009-11-22 11:29
Message:
Can't you just trap it? IIRC nagios_die uses die() to terminate the
program, and die can be trapped with $SIG{__DIE__}.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2902089&group_id=29880
More information about the Devel
mailing list