Create more documentation (#7627)

* Documentation, format class, no modification.
This commit is contained in:
frytimo
2025-11-18 21:33:07 -04:00
committed by GitHub
parent e619c97ce6
commit adfc4cc469
104 changed files with 24461 additions and 21721 deletions

View File

@@ -37,6 +37,16 @@
//echo "pid_file: ".$pid_file."\n";
//function to check if the process exists
/**
* Checks if a process exists.
*
* This function checks if a process with the specified PID file exists, and returns true if it does,
* or false otherwise. If no PID file is provided, the function defaults to returning false.
*
* @param string|false $file The path to the PID file of the process to check for, or false to default to not checking any process.
*
* @return bool True if a process with the specified PID exists, false otherwise.
*/
function process_exists($file = false) {
//set the default exists to false