[ flushlogs.patch ]
This patch makes flushlogs() check if the logs system
is initialised yet, before attempting to flush any
messages.
If we caught a SEGV before initialising sockets and
before initialising the logs stuff, the following chain
resulted:
SEGV -> write_debug() -> setsock() -> fatal() \
-> flushlogs() -> SEGV
Fabian