From owner-freebsd-ports@FreeBSD.ORG Mon May 23 08:50:32 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6ACBF106566C for ; Mon, 23 May 2011 08:50:32 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 093BC8FC17 for ; Mon, 23 May 2011 08:50:32 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 73CC02A29125; Mon, 23 May 2011 10:50:30 +0200 (CEST) Date: Mon, 23 May 2011 10:50:30 +0200 From: Ed Schouten To: Chris Rees Message-ID: <20110523085030.GJ59496@hoeg.nl> References: <20110522205003.GH59496@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kr14OxHsRwZHHqxS" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org Subject: Re: Utmpx usage X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 08:50:32 -0000 --kr14OxHsRwZHHqxS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Chris Rees , 20110523 10:40: > I've been perusing the linux manpage for utmp, and noticed that login and > getty deal with utmp for logins, and It's only init's job to deal with > logouts. Since runit is an init replacement, this makes perfect sense. Yeah; it probably acts as a safety belt for misbehaving tools that forget to write logout records. On FreeBSD logout records are written by pam_lastlog(8), making that logic in init(8) superfluous. You could consider calling getutxline() in a loop to obtain the ut_ids for a specific TTY. --=20 Ed Schouten WWW: http://80386.nl/ --kr14OxHsRwZHHqxS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBAgAGBQJN2h/WAAoJEG5e2P40kaK7zYMP/AsMilpDxACIp3/wKd5He4hi DJxgM15Kv+WdLf6fviXLpSPU3hvdLA4dAU13M1yrJcVAEjQ7klAn6JxG0KJJrPs4 gI0e2HFWy12zAzIFVX6ynsr1hqPaXuq4cbhzbvj/elP/Slu4i/KnKXMWskAySiJg Q/yHePF+7xcGCIduDOo8RD0klf7j3aiZGNbxt5I9zO7qXfwJX7Xo8A7hKD+9dGQw uBni5/1TS74Zm9SFHCsm7PaGg4t6XPQJSNoCET0abPI/YiOm3Hf4oMIE+F1TyC8t bdUlhC9ybML+lzI5zwKVAvFZqpnxQrVQZEB2xQBf3idGu6AVgJ55hVjYFNfnb+V0 q9guLU8PxE9cITlwZespwMlQp1ZwMzCNe+yt1tWoTYcrRkPArXXpSIjUpDc2G0uv VRtJ1vIeZom9WYS7ML4Ww3LT60rAqpQg5VA8LQQEciNXdbpGwzamtm3GDYzdstZh JvXtQMZoqUARHXPzPG/px4Gaw9GMSIqhNhg/0Y2QFgLg3oNod9KY1ueQEDAKSH3j dBYQ+9z+8uY+IktxyKRjIBDT19P/PxHjTpNx+iolKwsqV8+GwpMK4JFkV1cGY/C5 ppYEyI6M4oZ+bzztDmwwNcPyeBhTV0csO6MD8PB2kebXYdkAC53mg6L6XQs8MSB4 zffcdhQ64DiY7layTkoe =vQfn -----END PGP SIGNATURE----- --kr14OxHsRwZHHqxS--