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