From: Roy Marples Date: Fri, 30 Apr 2010 03:02:29 +0000 (+0000) Subject: Add the pid of the current process to all messages sent to syslog. X-Git-Tag: v5.2.3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=690c6933f9e73e11ff8f6d3062a77433a3215754;p=thirdparty%2Fdhcpcd.git Add the pid of the current process to all messages sent to syslog. Thanks to Gerd von Egidy. --- diff --git a/dhcpcd.c b/dhcpcd.c index f7d4f9e8..983c3b64 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1607,7 +1607,7 @@ main(int argc, char **argv) struct timespec ts; closefrom(3); - openlog(PACKAGE, LOG_PERROR, LOG_DAEMON); + openlog(PACKAGE, LOG_PERROR | LOG_PID, LOG_DAEMON); setlogmask(LOG_UPTO(LOG_INFO)); /* Test for --help and --version */