]> git.ipfire.org Git - thirdparty/asterisk.git/commit
loader: Improve error handling.
authorCorey Farrell <git@cfware.com>
Fri, 28 Sep 2018 15:13:39 +0000 (11:13 -0400)
committerCorey Farrell <git@cfware.com>
Tue, 2 Oct 2018 17:21:27 +0000 (12:21 -0500)
commitf071e885b84a8def3405d05486061115fbd44ed6
treeb231fc7fd2ed31a3641f1b964f471d87802e80f9
parent5821d1a61e016b8198f21c88bfa78c5c5e3bbc48
loader: Improve error handling.

* Display list of unavailable dependencies when they cause another
  module to fail loading.
* When a module declines to load find all modules which depend on it so
  they can be declined and listed together.
* Prevent retry of declined modules during startup.
* When a module fails to dlopen try loading it with RTLD_LAZY so we can
  attempt to display the list of missing dependencies.

These changes are meant to reduce logger spam that is caused when a
module has many dependencies and declines to load.  This also fixes some
error paths which failed to recognize required modules.

Module load/start errors are delayed until the end of loader startup.

Change-Id: I046052c71331c556c09d39f47a3b92975f3e1758
include/asterisk/logger.h
main/loader.c
main/logger.c