Date: Fri, 28 Jan 2011 21:56:47 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/hastd hastd.c hastd.h Message-ID: <201101282157.p0SLv8Yt064421@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2011-01-28 21:56:47 UTC
FreeBSD src repository
Modified files:
sbin/hastd hastd.c hastd.h
Log:
SVN rev 218044 on 2011-01-28 21:56:47Z by pjd
Add function to assert that the only descriptors we have open are the ones
we expect to be open. Also assert that they point at expected type.
Because openlog(3) API is unable to tell us descriptor number it is using, we
have to close syslog socket, remember assert message in local buffer and if we
fail on assertion, reopen syslog socket and log the message.
MFC after: 1 week
Revision Changes Path
1.32 +141 -0 src/sbin/hastd/hastd.c
1.7 +1 -0 src/sbin/hastd/hastd.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101282157.p0SLv8Yt064421>
