From: Ian Jackson Date: Wed, 1 Oct 2014 22:31:36 +0000 (+0100) Subject: logging: Persistent children include pid in their log messages X-Git-Tag: base.ipv6-polypath-fixes-2.v1~30 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/b85fe3f90b025a3742bf1c0ea91bc213a421f74d?hp=b85fe3f90b025a3742bf1c0ea91bc213a421f74d 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 ---