Fix extensions crash on shutdown by Smjert · Pull Request #7075 · osquery/osquer...
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.
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK