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 <>
Signed-off-by: Thorsten Glaser <>
Signed-off-by: H. Peter Anvin <>
1 file changed