watcher: add a centralized an generic facility to monitor file descriptors

This commit is contained in:
Martin Willi
2013-07-18 16:00:27 +02:00
parent e5b5a66712
commit 32b2a5e04b
6 changed files with 504 additions and 3 deletions
+2
View File
@@ -80,6 +80,7 @@ void library_deinit()
/* make sure the cache is clear before unloading plugins */
lib->credmgr->flush_cache(lib->credmgr, CERT_ANY);
this->public.watcher->destroy(this->public.watcher);
this->public.scheduler->destroy(this->public.scheduler);
this->public.processor->destroy(this->public.processor);
this->public.plugins->destroy(this->public.plugins);
@@ -266,6 +267,7 @@ bool library_init(char *settings)
this->public.db = database_factory_create();
this->public.processor = processor_create();
this->public.scheduler = scheduler_create();
this->public.watcher = watcher_create();
this->public.plugins = plugin_loader_create();
if (!check_memwipe())