Date: Tue, 31 Aug 2010 12:05:13 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212052 - head/sbin/hastd Message-ID: <201008311205.o7VC5D0m029693@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008311205.o7VC5D0m029693>