Set this.promiser immediately after promiser expansion per iteration.

HACK: except for files and storage promises.
Unstage acceptance test.
Close #5959.

(cherry picked from commit 8a578e1e5f5beb0fcbad19703b44d569ad7a47cf)
Redmine#5981: add dcs.cf.sub and plucked.cf.sub to distributed files

(cherry picked from commit ce4e451099c8eb51c403f294c00ad1d1c06e37db)
Log nice error message in case of recv timeout within OpenSSL.

(cherry picked from commit ebd6e16eccdf84d4e6377197dfd5adcc71db0110)
Assert that the openssl sockets are blocking.

If we ever need to use non-blocking sockets, that need should be
accomodated by creating different API for that. Our current functions
are surprisingly simple (a good thing!) because they don't work for
non-blocking sockets.

(cherry picked from commit 41d520269e61064d0f996da74b385a0f369c17bb)
Log more appropriate message if interrupted by signal

In addition, reworded a couple of messages in order to not repeat the
"error" word.

(cherry picked from commit 2594eb3dd0e5bdc6a7d968d1e326c765fcdba7dd)
When db is closed, make sure write transactions are closed

The catch here is that because we use thread-local storage in
dbm_lmdb.c, we can only close the write transaction of the current
thread. Nevertheless this should only happen when the process exits
(signal handler or program finished) so only one thread is supposed to
exist.

(cherry picked from commit e5babd5904efff0466eab7eee307e46292e1c0fb)
Redmine #1884, #5873: Read module output in text mode on Windows.

Module output is always text, and without this we will get illegal
characters in the module protocol parsing.

There are more tests to fix in the Windows area than I have included
here, but this will have to do for now.

(cherry picked from commit 65a08a0097b5876946a72f6734566a979ef8176a)
Special handling of signals for cf-key.

Handle SIGINT and SIGTERM to set gobal flag that makes the
ShowHost callback return false, thus causing ScanLastSeenQuality break
out of the while loop and return cleanly.

Fixes redmine #5957

(cherry picked from commit 0a97e68c4846cb9d5ee8f733ab6d5b846d64d0ee)
Satisfy linker when building unit test.

This test is not testing anything right now, probably needs to
link in more code from libpromises once it does, but for now keep
it simple.

(cherry picked from commit 7ef4e5a170515ab39a2f561863144d59b03dd24a)
added debian directory to build deb packages
Merge branch '3.6.x' of github.com:basvandervlies/core into 3.6.x