5

Fix extensions crash on shutdown by Smjert · Pull Request #7075 · osquery/osquer...

 2 years ago
source link: https://github.com/osquery/osquery/pull/7075
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.
neoserver,ios ssh client

Copy link

Member

Smjert commented on Apr 23, 2021

The crash was happening due to the ExtensionWatcher thread still running
and attempting to call the watch() function,
while the extension was exiting.

Use the Initializer::shutdown() function so that all threads/services are stopped before
exiting.

Also update the documentation with the example extension.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK