1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

LibC: isatty() should return 1 for success, 0 for error

This commit is contained in:
Andreas Kling 2019-11-17 20:11:56 +01:00
parent 70e220a81f
commit 5eef2f78b0

View file

@ -331,7 +331,7 @@ int rmdir(const char* pathname)
int isatty(int fd)
{
struct termios dummy;
return tcgetattr(fd, &dummy);
return tcgetattr(fd, &dummy) == 0;
}
int getdtablesize()