* Chris Rees <utis...@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.

-- 
 Ed Schouten <e...@80386.nl>
 WWW: http://80386.nl/

Attachment: pgpayNYGoNxVC.pgp
Description: PGP signature

Reply via email to