On Tue, 12 Oct 2021, Robert Elz wrote:
Doing it in the driver is OK as well, but probably needs to remain in getty until we are sure that all drivers do this correctly. Since you are handling this by blocking open until long enough after the close had passed, also delaying the open in getty should have no real effect.
Thanks for the history -- very interesting!I've committed the change to getty (removed the sleep completely) and will help people resolve any driver issues that come up as a result of this. It's nearly impossible for me to actually test every serial driver in the tree, and I expect the number of people still using a combination of 1) an esoteric serial driver, 2) a modem, 3) getty instead of something like pppd, and 4) a recent NetBSD release will be very close to zero.
Take care, Jared