Re: weird utmp/perl problem
maor@ece.utexas.edu (Guy Maor) wrote on 25.04.98 in <[🔎] 8790ot20xl.fsf@1Cust118.max3.los-angeles.ca.ms.uu.net>:
> Roderick Schertler <roderick@argon.org> 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 debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: