chiark / gitweb /
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>
Thu, 9 Oct 2014 18:29:59 +0000 (19:29 +0100)
commit06388f1358043d6c43a9a81a23c3b6929c7a0596
tree4fc8f268800dcc210179cbc40169400d4c5b7272
parent6ae43a0329c15ad61c4d89143d520e2d5aae6212
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