From owner-cvs-src-old@FreeBSD.ORG Sun Dec 27 21:15:18 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 772091065697 for ; Sun, 27 Dec 2009 21:15:18 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6707A8FC18 for ; Sun, 27 Dec 2009 21:15:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBRLFIjx059345 for ; Sun, 27 Dec 2009 21:15:18 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBRLFIB5059344 for cvs-src-old@freebsd.org; Sun, 27 Dec 2009 21:15:18 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200912272115.nBRLFIB5059344@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Sun, 27 Dec 2009 21:14:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/rwhod Makefile rwhod.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 21:15:18 -0000 ed 2009-12-27 21:14:55 UTC FreeBSD src repository Modified files: usr.sbin/rwhod Makefile rwhod.c Log: SVN rev 201060 on 2009-12-27 21:14:55Z by ed Let rwhod use libulog. I am not planning on providing a mechanism tot stat() the database files directly. The disadvantage of this, is that rwhod will now be a little bit more heavy than it used to be. It normally used to fstat() the file descriptor to see whether the file had changed, but this is now impossible to implement, meaning we have to parse the entire utmp file each 180 seconds. This is probably not an issue on modern 16-way servers, but if it turns out to be a problem, we'll think of something. Revision Changes Path 1.8 +3 -0 src/usr.sbin/rwhod/Makefile 1.24 +27 -62 src/usr.sbin/rwhod/rwhod.c