Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2011 10:50:30 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Chris Rees <utisoft@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Utmpx usage
Message-ID:  <20110523085030.GJ59496@hoeg.nl>
In-Reply-To: <BANLkTi=XCcOCs4zrVPYHzimzzpPJ34jXNg@mail.gmail.com>
References:  <BANLkTimVF_YgdJ_d6=-L5jmx_zVrbp0wBQ@mail.gmail.com> <20110522205003.GH59496@hoeg.nl> <BANLkTikpxDeE0CnALF22eiYXvuuOLkjsQw@mail.gmail.com> <BANLkTi=XCcOCs4zrVPYHzimzzpPJ34jXNg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--kr14OxHsRwZHHqxS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Chris Rees <utisoft@gmail.com>, 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 <ed@80386.nl>
 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110523085030.GJ59496>