sched: Remove double close, found by coverity
plugin: Make use of the err variable, found by coverity
liana: Fix non-looping loops, found by coverity
plugin, iov, auth, request: Remove mem leaks, found by coverity
liana, cheetah: Fix fd leaks on error path, found by coverity
dirlisting: Remove dead code, found by coverity
palm: getpeername may fail, found by coverity
CGI: Allow to define interpreter and mimetypes for each match

This patch expand the CGI plugin so now is possible to define
multiple Match rules plus define an optional interpreter and
mime type to assist scripting such as PHP, Python, Lua, etc.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
fastcgi: Use pthread_key_t for thread local vars.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Utils: improve stacktrace

This patch adds a few useful features to the mk_utils_stacktrace()
function.

  - It adds the function name resolution and binary file associated
  - The stacktrace is print on any compilation mode
  - Function resolution names are only available on --debug mode
  - If Monkey compiles with --debug mode, the compiler parameter
    -fvisibility=hidden is turned off.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Signals: implement sys_siglist if symbol is not found

When compiling with old toolchains for some ARM devices and
mostly related to old versions of uClib, the symbol sys_siglist
is not found and make the compilation process to fail.

This patch introduce a header with the sys_siglist array defined
in the following file:

  src/contrib/uclib/sys_siglist.h

If the symbol is not found, it includes the header.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Configure: new option --no-backtrace

This patch introduce a new 'configure' script option --no-backtrace.
The backtrace(3) function is part of GNU extensions, mostly available
in glibc, on other C libraries like uClib is not implemented, for hence
we need a mechanism to disable the backtrace feature on demand.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Configure: new uClib mode through --uclib-mode

This patch introduce the new parameter to enable uclib compatibility,
once is set it disable some specific GLIBC features.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
cgi: Support some non-compliant CGI programs (cgit uses LFLF after headers)
sched: Remove double close, found by coverity
plugin: Make use of the err variable, found by coverity
liana: Fix non-looping loops, found by coverity
plugin, iov, auth, request: Remove mem leaks, found by coverity
liana, cheetah: Fix fd leaks on error path, found by coverity
dirlisting: Remove dead code, found by coverity