Give GenerateDiffReports access to the agent config.
Merge pull request #1689 from kacfengine/bootstrap_check

Give GenerateDiffReports access to the agent config.
Failing to set SO_LINGER is not a catastrophic event, do not exit.
Do not log at level ERR non-catastrophic events.
The caller exits, no need to do it in the callee.
No change in logic, just moved things around to make more functions static.
Merge pull request #1686 from jimis/yield_serverd_resources

Yield serverd resources
Fix build: Remove redundant function declaration.
fix uptime calculation for solaris
Open execution log file descriptor on every write. #4378
Merge pull request #1692 from McAtte/uptime-patch-solaris

fix uptime calculation for solaris
Merge pull request #1650 from tzz/redmine5271-set-empty-field

Redmine5271 set empty field
Rename shell script to .sh extension.
Introducing lastseen_threaded_load.
contrib/enterprise/report.pl: add utility host lister
contrib/enterprise/report.pl: add alias for host lister
Merge pull request #1696 from jimis/lastseen_deadlock-pushed

Lastseen threading-forking load test.
Rewrite transaction handling for LMDB.

The old transaction handling had numerous problems:

  1. It was slow, because we open a new transaction for every single
     read/write. Especially writes would cause fsync() which is very
     I/O intensive.

  2. It was not thread safe, due to the way that transactions were
     handled when using DBWriteNoCommit. The transaction was stored
     in a globally shared structure.

After the rewrite, we store a pthread key in the global structure
instead, and use Thread Local Storage to keep the transaction pointer.
This has the added advantage of reusing the same transaction for
cursors, which means that cursors and regular DB calls can now be
mixed in LMDB. However, the other DB backends may not support this,
so it's still not recommended.

Additionally changed wrong include style at top of file, and also
removed a few stubs from tests that are not needed anymore after
libutils is included in the test build.
Merge pull request #1690 from kacfengine/lmdb_txn_rewrite

Rewrite transaction handling for LMDB.
Introduce CF_ASSERT for debug builds.