[Bug libc/32103] isatty() says EIO on hung-up TTYs. Should probably say 1 instead.

bugdal at aerifal dot cx sourceware-bugzilla@sourceware.org
Wed Aug 21 16:59:30 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=32103

--- Comment #12 from Rich Felker <bugdal at aerifal dot cx> ---
The only way I can see it being safe to conclude from EIO that the device is a
tty is if (1) research determines that no existing drivers return -EIO for
ioctls outside their own ranges, and (2) the kernel adds a safeguard so that
non-tty drivers never see tty ioctls, so that there's no risk of this invariant
suddenly being violated by a sloppy future driver.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list