Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 304a05af871ad017dc200090f34d33b407c5fc6d
https://github.com/tribe29/checkmk/commit/304a05af871ad017dc200090f34d33b40…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-01-04 (Mon, 04 Jan 2021)
Changed paths:
M livestatus/src/Poller.h
Log Message:
-----------
Unify setUpPoller and setUpErrorPoller
Both functions were taking the same argument and using a single
function simplifies the API. Moreover, setUpErrorPoller was noop
in most cases.
We only found three classes where setUpErrorPoller was implemented
and where stderr was different from stdout: AlertHelper,
CheckHelper, and ICMPReceiver.
This frees the caller from handling the error fd and therefore prevents
the case where the same fd would be registered multiple times. Multiple
registrations of the same fd now raises an asssertion.
CMK-6859
Change-Id: I31066880125014dae379b7a4428285feb1816a41