Bug #10540 ยป util-process.patch
| util.inc 2020-05-09 08:33:13.109820153 -0600 | ||
|---|---|---|
|
function is_process_running($process) {
|
||
|
$output = "";
|
||
|
exec("/bin/pgrep -anx " . escapeshellarg($process), $output, $retval);
|
||
|
return (intval($retval) == 0);
|
||
|
if ($process != "") {
|
||
|
exec("/bin/pgrep -anx " . escapeshellarg($process), $output, $retval);
|
||
|
return (intval($retval) == 0);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
function isvalidproc($proc) {
|
||