Utmpx usage

Ed Schouten ed at 80386.nl
Mon May 23 08:50:32 UTC 2011


* Chris Rees <utisoft at 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 <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20110523/3276f246/attachment.pgp


More information about the freebsd-ports mailing list