From 372bf9f630b643b209c121f70ed2db5e4440eac8 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sun, 6 Jun 2021 19:44:36 -0400 Subject: [PATCH] Exclude code from coverage --- lib/CLI.php | 4 ++++ lib/Service.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/lib/CLI.php b/lib/CLI.php index 847ffc90..c52c508d 100644 --- a/lib/CLI.php +++ b/lib/CLI.php @@ -229,6 +229,10 @@ USAGE_TEXT; return 0; } + /** Daemonizes the process via the traditional sysvinit double-fork procedure + * + * @codeCoverageIgnore + */ protected function fork(string $pidfile): void { // check that the PID file is not already used by another process $this->checkPID($pidfile, false); diff --git a/lib/Service.php b/lib/Service.php index beeaced9..5a0404a8 100644 --- a/lib/Service.php +++ b/lib/Service.php @@ -103,6 +103,9 @@ class Service { } } + /** Changes the condition for the service loop upon receiving a termination signal + * + * @codeCoverageIgnore */ protected function sigTerm(int $signo): void { $this->loop = false; }