From 2767ab755e52eb55df4cedc3777119d77342dc6f Mon Sep 17 00:00:00 2001 From: "J. King" Date: Thu, 24 Jun 2021 11:57:42 -0400 Subject: [PATCH] Use D modifier in pattern --- lib/Service/Daemon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/Daemon.php b/lib/Service/Daemon.php index f85c42c6..6ed0da2b 100644 --- a/lib/Service/Daemon.php +++ b/lib/Service/Daemon.php @@ -7,7 +7,7 @@ declare(strict_types=1); namespace JKingWeb\Arsse\Service; class Daemon { - protected const PID_PATTERN = "/^(?:[1-9]\d{0,77})*$/s"; // no more than 78 digits (256-bit unsigned integer), starting with a digit other than zero + protected const PID_PATTERN = '/^([1-9]\d{0,77})*$/D'; // no more than 78 digits (256-bit unsigned integer), starting with a digit other than zero /** Daemonizes the process via the traditional sysvinit double-fork procedure *