diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-31 12:05:13 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-31 12:05:13 +0000 |
commit | 1c05a324222af8934cc00e80a578dac107f4caa9 (patch) | |
tree | f34102444ecd1502860bcd2ccb0c0e1e17b11618 /sbin | |
parent | d9a5627136f9dfcde4b76bc64b3653e9665f8c2b (diff) | |
download | FreeBSD-src-1c05a324222af8934cc00e80a578dac107f4caa9.zip FreeBSD-src-1c05a324222af8934cc00e80a578dac107f4caa9.tar.gz |
Include process PID in log messages.
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 2 weeks
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/pjdlog.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/hastd/pjdlog.c b/sbin/hastd/pjdlog.c index ef3026f..8912105 100644 --- a/sbin/hastd/pjdlog.c +++ b/sbin/hastd/pjdlog.c @@ -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); } /* |