Date: Tue, 11 Oct 2011 19:46:10 +0200 From: Ed Schouten <ed@80386.nl> To: poyopoyo@puripuri.plala.or.jp Cc: freebsd-current@FreeBSD.org Subject: Re: MPSAFE tty and lastcomm output Message-ID: <20111011174610.GV91943@hoeg.nl> In-Reply-To: <86sjmzra73.wl%poyopoyo@puripuri.plala.or.jp> References: <86sjmzra73.wl%poyopoyo@puripuri.plala.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111011174610.GV91943>