On Sat, Jan 09, 2021 at 08:33:27AM -0500, Mouse wrote: > Waking up this thread from about a month ago.... > > [...] > > This makes me wonder if perhaps login sessions should have their > stdin/stdout/stderr set up on /dev/tty instead of the actual ctty > device. But if that's done, will the `real' ctty device even be open? > I think /dev/tty doesn't keep an open on the underlying tty device, nor > can I see any easy way for it to do so, since /dev/tty itself doesn't > get a close call until no process in the whole system, not just no > process with that ctty, has a descriptor open on /dev/tty. > > I'm not convinced there is a single right answer. I'm writing to ask > if anyone here has any thoughts to share on these issues.
Interesting. Need to think about that... -- David A. Holland dholl...@netbsd.org