From 29d122134670152378c9c54778a9322652d3028c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 30 Aug 2022 14:20:40 -0600 Subject: [PATCH] On CentOS posix_getsid function may not be available. --- app/email_queue/resources/service/email_queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/email_queue/resources/service/email_queue.php b/app/email_queue/resources/service/email_queue.php index 9d766c86e3..7922501b0a 100644 --- a/app/email_queue/resources/service/email_queue.php +++ b/app/email_queue/resources/service/email_queue.php @@ -58,7 +58,7 @@ $exists = false; //check to see if the process is running - if (file_exists($file)) { + if (function_exists(posix_getsid) && file_exists($file)) { $pid = file_get_contents($file); if (posix_getsid($pid) === false) { //process is not running