Fix broadcasting empty logs to logger plugins by Smjert · Pull Request #7183 · o...
source link: https://github.com/osquery/osquery/pull/7183
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
It is sometimes possible that multiple threads trying to serialize and
broadcast logs are enqueued. Each thread will broadcast all the logs
and if between two threads runs there's no new log to broadcast,
then the thread coming after a broadcast will find no logs,
broadcasting an empty log response instead of doing nothing.
Prevent this by checking that there are actually logs to be serialized
before broadcasting a response.
Fixes #7180
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK