pdns: Kill all spawned processes

Pipe backend spawned processes can still be alive after the pdns_server-instance was killed.
If the children remain alive, sockets will not be released, and the pdns_server-instance can't be respawned.

To be sure that all the spawned processes are killed, we must kill by using the process GID.
To be able to do the soft reloads, pdns_server-instance is declared as process group lider.

Also, all forced kills must kill by GID, not by PID, so all the processes would properly die.

Signed-off-by: Igor Maravic <igor@spotify.com>
Signed-off-by: Alexey Lapitsky <alexey@spotify.com>
Clean up after DynListener crash

When DynListener crashes, kill all processes from his parent PGRP.

This way we'll certanly close the pdns.controlsocket (no more hanging pdns_control processes)
and we'll kill the processes that aren't managable via pdns_control any more.
Add timeout to pdns_control connect, send and recv calls

If any of the connect, send and recv calls are timedout, TimeoutException is thrown.
main loop catches that exception and returns code 2.
code 1 is returned for all other exceptions.

In init.d script we now have 3 states:
UP
DOWN
UNRESPONSIVE

If the pdns_server is unresponsive, it will be killed.
After that, script continues as usual.
Clean up after the pdns_server-instance

Make sure that all children are killed after the pdns_server-instance dies
PDNS should always be the leader of the process group

That way, we can properly kill all of it's subprocesses!
Use the inet data type for supermasters.ip on postgrsql.

Use pgsql’s inet data type for v4 and v6 IP addresses in the
supermasters table.

The guarantees that the address will fit, that the queries will
return the addresses in canonical format, and correctness in that
nothing other than an IP address can be stored in that column.

Signed-off-by: James Cloos <cloos@jhcloos.com>
remove windows service entry points
fix base64 decoding for big endian archs on which long is not 32 bits (like s390x)
Replace hardcoded make with variable

This fixes a warning when running make -j n
Merge pull request #1077 from rubenk/hardcoded-make

Replace hardcoded make with variable
add OpenSSL exception to PowerDNS, Netherlabs, van Dijk and Hubert copyrights
force ragel alphtype to unsigned char, fixing non-ASCII TXT parsing on signed char platforms like s390x
remove windows code from parser
Merge pull request #1081 from mind04/windows

remove windows code from parser
Merge pull request #1079 from Zugschlus/master

add OpenSSL exception to PowerDNS, Netherlabs, van Dijk and Hubert copyr...
remove outdated LICENSE file as we also have a more recent COPYING
make OpenSSL linking exception more prominent - note that this has always applied! Fixes #1078, thanks @Zugschlus
add openssl linking exception to manual
limit accidental scope expansion, thanks @zeha
add NOTICE to recursor dist, thanks @mind04