mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
Add canary path on empty FSEvents subscription set
This commit is contained in:
parent
fe234f8f96
commit
9f79d74c60
@ -57,7 +57,7 @@ void FSEventsSubscriptionContext::requireAction(const std::string& action) {
|
||||
void FSEventsEventPublisher::restart() {
|
||||
if (paths_.empty()) {
|
||||
// There are no paths to watch.
|
||||
return;
|
||||
paths_.insert("/dev/null/");
|
||||
}
|
||||
|
||||
if (run_loop_ == nullptr) {
|
||||
@ -176,11 +176,6 @@ void FSEventsEventPublisher::configure() {
|
||||
paths_.insert(sc->discovered_);
|
||||
}
|
||||
|
||||
// There were no paths in the subscriptions?
|
||||
if (paths_.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
restart();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user