Relased on Wed, 09 Jul 2014 11:26:16 -0700
[klibc] isatty(): use TCGETS instead of TIOCGPGRP, like dietlibc does

While all “real” ttys may support TIOCGPGRP, /dev/console doesn’t;
using TCGETS here allows Linux booted with init=/bin/mksh-static
to have working interactive command line (PS1, editing, etc).

[ hpa: TCGETS matches glibc, so go with it ]

Reported-by: Dominik George <d.george@tarent.de>
Signed-off-by: Thorsten Glaser <t.glaser@tarent.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 file changed