On CentOS posix_getsid function may not be available.

This commit is contained in:
FusionPBX
2022-08-30 14:20:40 -06:00
committed by GitHub
parent 334d989b08
commit 29d1221346

View File

@@ -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