[EMAIL PROTECTED] (Guy Maor)  wrote on 25.04.98 in <[EMAIL PROTECTED]>:

> Roderick Schertler <[EMAIL PROTECTED]> writes:
>
> > It's supposed to open /dev/tty instead of using stdin.  This is the way
> > it works on all the systems I could get people to check for me, which
> > are Linux with libc5, AIX 4.2, Solaris 2.4, Solaris 2.5, DG/UX 4.11 and
> > FreeBSD 2.2.2-R.
>
> I don't understand how this would work.  How do you get the canonical
> ttyname from /dev/tty ?
>
> $ tty < /dev/tty
> /dev/tty

Ugh. That's not supposed to happen, I believe. Opening /dev/tty ought to  
give a fd that stat()s like one to the current controlling terminal, _not_  
to /dev/tty. Well, at least that's the rdev it should have.

Kernel bug?

MfG Kai


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to