Re: MPSAFE tty and lastcomm output
--6tnUusbJa3r4kWvc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi <name>,
* poyopoyo@puripuri.plala.or.jp <poyopoyo@puripuri.plala.or.jp>, 20111011 1=
4:20:
> It looks stored accounting information is correct, but lastcomm failed
> to represent device name gently after it has been destroyed.
Yes, exactly. Our struct acct uses a dev_t to store the controlling TTY.
This is obviously completely broken on 8+, because we garbage collect
pseudo-terminals. Still, one could argue it has always been broken,
because even before the new TTY layer it would break when unplugging
USB-to-serial converters or performing a reboot.
I think the only way to fix this, is by updating the acct structure to
write a string representation of the device name.
Best regards,
--=20
Ed Schouten <ed@80386.nl>
WWW: http://80386.nl/
--6tnUusbJa3r4kWvc
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
iQIcBAEBAgAGBQJOlIDiAAoJEG5e2P40kaK7Jb4P/R5FdFlNJIcC0RkzDF9/IVpf
8SLNVOdpHpySP0OyhChcuaKnTfTwDUMJ4G6yUZlu0FvZIx8NrkZgKZqjvioTgxVD
48lmk3TqdATU9r/MmWRpxsLYf6w+PesOAYPn494g4urmBhukiwDPNOOGtlzA4SWH
cZUfCqXGXUD98CrADPY1B5hpQGaY2oLhUxy5hZPc98k1opmgq9sw+AyUyggJvOao
B4xN8Lg16K6HOGndrhnXBbQu9tTPo8YTy0meGJh/NtkzDomVeVyks7i3xIHgn4xW
p1dpZzRQCePKZPkMzIZebwfoU8kQ/qCCJXBdVrR7/FgjFjLOdSNfg/p0J7+c5LsU
oa0C6xE489q1j5aypZb6oC41/WzPJD2dGIBfFsKKt1kWhPuoTZTXsxcWhNlo2mL1
qIg8DBKhTtStMN+aMvfhCZSZTXBpPnel/DgOgyuPM/NojCygPVZzd7ZLLmuNdlOz
GrzHxFctcjW9DSAHcKP5oVx8Pke3wBV/CQC8q9dvtNMmuW/qQuadIp5Esm3UDSNx
dWCgUzvKBpe701WWTWIqFEC1yfzLaRyLN+yG/69Fastx5nC+foz/9g/sHMbM5F1l
pNywWWcD+xWwhgK5stHgyYV+QVz4LxwGR0MzP/hy+7Z77eLv9JTPILnoKB4RdAAi
kofxGZlCcHMt2BWnwzct
=LlSU
-----END PGP SIGNATURE-----
--6tnUusbJa3r4kWvc--
討論串 (同標題文章)