svn commit: r212052 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Aug 31 12:05:13 UTC 2010
Author: pjd
Date: Tue Aug 31 12:05:13 2010
New Revision: 212052
URL: http://svn.freebsd.org/changeset/base/212052
Log:
Include process PID in log messages.
Submitted by: Mikolaj Golub <to.my.trociny at gmail.com>
MFC after: 2 weeks
Modified:
head/sbin/hastd/pjdlog.c
Modified: head/sbin/hastd/pjdlog.c
==============================================================================
--- head/sbin/hastd/pjdlog.c Tue Aug 31 12:03:29 2010 (r212051)
+++ head/sbin/hastd/pjdlog.c Tue Aug 31 12:05:13 2010 (r212052)
@@ -57,6 +57,9 @@ pjdlog_mode_set(int mode)
assert(mode == PJDLOG_MODE_STD || mode == PJDLOG_MODE_SYSLOG);
pjdlog_mode = mode;
+
+ if (mode == PJDLOG_MODE_SYSLOG)
+ openlog(NULL, LOG_PID, LOG_DAEMON);
}
/*
More information about the svn-src-head
mailing list