Relased on Wed, 09 Jul 2014 11:26:16 -0700
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJTvYlJAAoJEIiuZH1Y96v++JQQAJJcmmAO8wT5v4SapIeBaEd5
Q8N2ZAqu4cBVycqI4ztZHS4GtG/Inxvm4RS/gzmdtiGwLi4IKtQKFPs97r3LiZHx
7quqAqQ/f9Rs1WElM5M9fh8kgjRn6n3aeBpjwFD0oLpqU7KOyLhChtJ5Y0gm4DR1
80dLxgAE9Ub1S7JcXERpVnhkcHm0fyuooB1QwY2xhvxKft1D/gR4UlGyQD9w6yCw
2IJEiamvN+ZO9syOWXQVc/mnolzTPU8KQAPSWIvZL+9BiDCpiaemV4wCZAN0M3e6
ZTJoARG5aINHaVfOtw4ggljY8G9FsOY3uLpQ0qxMGfnFHQROeab83z+8aoB5QZRh
LnJ2tGk3Z7z2T/vhfDu9QbUveZg60r1c5KG9vV2hsGxPmbpnw4ZwQBNftYTXR+yS
BeBpRjsfuL2IJJD7hbGzPdsTri8K0zZtQLAR1pyCKTg7azU4qfhrJsupTwr9Reom
9G81lD/WSAiw7NTWPglnZkcZK78HVsXbvrYcc3skXt69uuPSDnwuM+WR8yMfIVai
YSw8jaDfB1p/+VJR5laSCeDw9ihm3Ed4TmlkfqfZvUxhD3Z1W8XKdKO3Nw/5N3jU
uDq7CT+wty8lT9YjfvBgGxBT1hdnGiszKf/5h+AjjQnO4MnEkud0nm54cL+sDtmp
e9jLyCDGIgyrKQ0rEHR1
=WmxH
-----END PGP SIGNATURE-----
[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