MPSAFE tty and lastcomm output
Ed Schouten
ed at 80386.nl
Tue Oct 11 17:46:11 UTC 2011
Hi <name>,
* poyopoyo at puripuri.plala.or.jp <poyopoyo at puripuri.plala.or.jp>, 20111011 14: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,
--
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-current/attachments/20111011/4c8f40f5/attachment.pgp
More information about the freebsd-current
mailing list