On CentOS posix_getsid function may not be available.
This commit is contained in:
parent
334d989b08
commit
29d1221346
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue