]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: allow use of --id=ppid when logging locally
authorSami Kerola <kerolasa@iki.fi>
Fri, 8 Aug 2014 23:49:46 +0000 (00:49 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 15 Aug 2014 20:52:12 +0000 (21:52 +0100)
commit1d57503378bdcd838365d625f6d2d0a09da9c29d
tree1c8980efb3528f767b9e03905c87a286c30b7048
parente6d0c4c1acfafed3fac1907b90d6f1077b581736
logger: allow use of --id=ppid when logging locally

There is no obvious way to make syslog(3) to print both pid or ppid, so
duplicate the libc syslog() to logger.  Making the ppid printing work
using unix socket has side effect of local becoming capable to use both
rfc format output, which is hopefully seen as good thing.  The
syslog_local() is format wise one-to-one copy with glibc syslog(3)
format.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/logger.c