logging: Persistent children include pid in their log messages
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 1 Oct 2014 22:31:36 +0000 (23:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Oct 2014 00:07:11 +0000 (01:07 +0100)
commitb85fe3f90b025a3742bf1c0ea91bc213a421f74d
tree4fc8f268800dcc210179cbc40169400d4c5b7272
parent32654a316b5925914f5e5f481971d47f9728edab
logging: Persistent children include pid in their log messages

Use the new PHASE_CHILDPERSIST hook to discover when we fork and
become a persistent child.  When that happens, we call openlog() again
to add LOG_PID, and we make a note to add the pid to messages written
directly to logfiles (or the terminal) by secnet's file logger.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
log.c