改名
This commit is contained in:
@@ -97,9 +97,11 @@ class Shutdown extends Component
|
|||||||
if (intval($content) < 1) {
|
if (intval($content) < 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exec('ps -eo pid', $this->_pids);
|
exec('ps -eo pid', $output);
|
||||||
var_dump($this->_pids);
|
$output = array_filter($output, function ($value) {
|
||||||
if (in_array($content, $this->_pids)) {
|
return intval($value);
|
||||||
|
});
|
||||||
|
if (in_array(intval($content), $output)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user