icinga2/lib/cli
Alexander A. Klimov df9008bfc4 StartUnixWorker(): watch forked child via waitpid(), not SIGCHLD handler
Before:

On SIGCHLD from the forked worker the umbrella process sets a failure flag.
StartUnixWorker() recognises that and does waitpid(), failure message, etc..
On OpenBSD we can't tell the signal source, so we always set the failure flag.
That's not how our IPC shall work, that breaks the IPC sooner or later.

After:

No SIGCHLD handling and no failure flag setting.
Instead StartUnixWorker()'s wait loop uses waitpid(x,y,WNOHANG)
to avoid false positives while watching the forked worker.
2022-09-07 11:46:46 +02:00
..
apisetupcommand.cpp Add --cn parameter to 'api setup' CLI command allowing hostname overrides 2019-04-26 10:52:05 +02:00
apisetupcommand.hpp Add --cn parameter to 'api setup' CLI command allowing hostname overrides 2019-04-26 10:52:05 +02:00
apisetuputility.cpp Merge pull request #7102 from Icinga/feature/boost-fs-7101 2019-04-25 15:53:55 +02:00
apisetuputility.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
calistcommand.cpp Add function docs for CA CLI commands 2019-06-07 10:33:55 +02:00
calistcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
caremovecommand.cpp Add function docs for CA CLI commands 2019-06-07 10:33:55 +02:00
caremovecommand.hpp CLI: Update ca remove/restore commands from my review 2019-06-07 10:33:55 +02:00
carestorecommand.cpp Add function docs for CA CLI commands 2019-06-07 10:33:55 +02:00
carestorecommand.hpp CLI: Update ca remove/restore commands from my review 2019-06-07 10:33:55 +02:00
casigncommand.cpp Add function docs for CA CLI commands 2019-06-07 10:33:55 +02:00
casigncommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
clicommand.cpp Use std::mutex, not boost::mutex 2021-02-03 09:54:57 +01:00
clicommand.hpp Use std::mutex, not boost::mutex 2021-02-03 09:54:57 +01:00
CMakeLists.txt Build fix 2020-02-17 18:40:28 +01:00
consolecommand.cpp Fix compiler warnings don't move local variables 2022-02-22 17:51:43 +01:00
consolecommand.hpp Use std::mutex, not boost::mutex 2021-02-03 09:54:57 +01:00
daemoncommand.cpp StartUnixWorker(): watch forked child via waitpid(), not SIGCHLD handler 2022-09-07 11:46:46 +02:00
daemoncommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
daemonutility.cpp Replace std/boost::bind() function with lambda expression 2021-03-10 16:29:40 +01:00
daemonutility.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
editline.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
featuredisablecommand.cpp Impersonate as Icinga user, not root 2019-04-02 17:05:48 +02:00
featuredisablecommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
featureenablecommand.cpp Impersonate as Icinga user, not root 2019-04-02 17:05:48 +02:00
featureenablecommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
featurelistcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
featurelistcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
featureutility.cpp Replace std/boost::bind() function with lambda expression 2021-03-10 16:29:40 +01:00
featureutility.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
i2-cli.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
internalsignalcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
internalsignalcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
nodesetupcommand.cpp Merge pull request #7838 from Icinga/bugfix/catch-exception-in-node-setup 2020-02-14 09:51:17 +01:00
nodesetupcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
nodeutility.cpp Replace _unlink() + rename() with boost::filesystem::rename() 2019-04-25 09:53:02 +02:00
nodeutility.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
nodewizardcommand.cpp CLI: Rename client -> agent 2019-07-20 12:53:19 +02:00
nodewizardcommand.hpp CLI: Rename client -> agent 2019-07-20 12:53:19 +02:00
objectlistcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
objectlistcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
objectlistutility.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
objectlistutility.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkinewcacommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkinewcacommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkinewcertcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkinewcertcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkirequestcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkirequestcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkisavecertcommand.cpp icinga2 pki save-cert: allow to specify --key and --cert 2020-04-28 17:34:00 +02:00
pkisavecertcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkisigncsrcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkisigncsrcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkiticketcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkiticketcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
pkiverifycommand.cpp Allow specifying a CRL in icinga2 pki verify 2020-12-09 12:12:01 +01:00
pkiverifycommand.hpp Add pki verify CLI command: print, signed by CA, valid CA, CN match 2020-02-17 18:10:51 +01:00
variablegetcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
variablegetcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
variablelistcommand.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
variablelistcommand.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
variableutility.cpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00
variableutility.hpp Replace Copyright header with a short version, part I 2019-02-25 14:48:22 +01:00