改名
This commit is contained in:
@@ -127,9 +127,7 @@ class Shutdown extends Component
|
|||||||
*/
|
*/
|
||||||
public function close(string $value)
|
public function close(string $value)
|
||||||
{
|
{
|
||||||
$resource = fopen($value, 'r');
|
$content = file_get_contents($value);
|
||||||
$content = fgets($resource);
|
|
||||||
fclose($resource);
|
|
||||||
|
|
||||||
while ($this->pidIsExists($content)) {
|
while ($this->pidIsExists($content)) {
|
||||||
// exec('kill -15 ' . $content);
|
// exec('kill -15 ' . $content);
|
||||||
|
|||||||
Reference in New Issue
Block a user