summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-08-31 12:05:13 +0000
committerpjd <pjd@FreeBSD.org>2010-08-31 12:05:13 +0000
commit1c05a324222af8934cc00e80a578dac107f4caa9 (patch)
treef34102444ecd1502860bcd2ccb0c0e1e17b11618 /sbin/hastd
parentd9a5627136f9dfcde4b76bc64b3653e9665f8c2b (diff)
downloadFreeBSD-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/hastd')
-rw-r--r--sbin/hastd/pjdlog.c3
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);
}
/*
OpenPOWER on IntegriCloud