mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 01:55:20 +00:00
logger: Fail all plugins if any fail (#3488)
This commit is contained in:
parent
e4c0557e1b
commit
9b7ce1b5ad
@ -77,7 +77,7 @@ Status RegistryInterface::setActive(const std::string& item_name) {
|
||||
}
|
||||
}
|
||||
|
||||
Status status(0, "OK");
|
||||
Status status;
|
||||
active_ = item_name;
|
||||
// The active plugin is setup when initialized.
|
||||
for (const auto& item : osquery::split(item_name, ",")) {
|
||||
@ -90,6 +90,10 @@ Status RegistryInterface::setActive(const std::string& item_name) {
|
||||
// start their extension socket.
|
||||
status = pingExtension(getExtensionSocket(external_.at(item_name)));
|
||||
}
|
||||
|
||||
if (!status.ok()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user