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:
parent
70e220a81f
commit
5eef2f78b0
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue