tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Reparenting processes?



>> 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.
> Interesting. Need to think about that...

One thing I can remark on already: tty(1) and ttyname(3) become less
useful, at least as they are currently implemented.  When I run $SHELL
with stdin, stdout, and stderr connected to /dev/tty, then tty(1),
which is basically just a thin wrapper around ttyname(3), prints
/dev/tty on 1.4T, and does so on 5.2 except for ptys (the exception
because of an apparent optimization attempt in ttyname(3)).

I'm not sure whether I think tty(1) and/or ttyname(3) should drill
through /dev/tty and find the real tty; I can see arguments each way.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index