改名
This commit is contained in:
@@ -177,16 +177,22 @@ class ServerInotify extends Process
|
|||||||
$server->reload();
|
$server->reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 清理所有inotify监听
|
* 清理所有inotify监听
|
||||||
*/
|
*/
|
||||||
public function clearWatch()
|
public function clearWatch()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
foreach ($this->watchFiles as $wd) {
|
foreach ($this->watchFiles as $wd) {
|
||||||
@inotify_rm_watch($this->inotify, $wd);
|
@inotify_rm_watch($this->inotify, $wd);
|
||||||
}
|
}
|
||||||
|
} catch (Exception $exception) {
|
||||||
|
$this->debug($exception->getMessage());
|
||||||
|
} finally {
|
||||||
$this->watchFiles = [];
|
$this->watchFiles = [];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user