Add the pid of the current process to all messages sent to syslog.

Thanks to Gerd von Egidy.
This commit is contained in:
Roy Marples 2010-04-30 03:02:29 +00:00
parent 17c3f18cca
commit 690c6933f9

View File

@ -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 */