]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add the pid of the current process to all messages sent to syslog.
authorRoy Marples <roy@marples.name>
Fri, 30 Apr 2010 03:02:29 +0000 (03:02 +0000)
committerRoy Marples <roy@marples.name>
Fri, 30 Apr 2010 03:02:29 +0000 (03:02 +0000)
Thanks to Gerd von Egidy.

dhcpcd.c

index f7d4f9e8d8d537b0e58ee22edc6bac9e1b1677d7..983c3b64695f3c12bc01efacdc6f5d9a31a75f53 100644 (file)
--- 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 */